Script i can send to others to run SFC /Scannow and save results


  1. Posts : 232
    Win 10 Ver 1903
       #1

    Script i can send to others to run SFC /Scannow and save results


    I often have to walk people through this over the phone. You would think it isn't that hard but many people today have never even seen a CMD box. I would like to come up with a script that would:
    open a cmd window as admin
    run SFC /scannow
    and finally create the list of problems and repairs to send me. The below works for that.
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%USERPROFILE%\Desktop\SendTechsfcdetails.txt

    I could probably even automate the end using 'ipmnote' but if they can't handle emailing me the results...
    This is really for Users who can only run things by clicking an icon of which i have a few
    I have tried a few utilities that i have used before for running a batch as admin but they dont seem to work for sfc /scannow.
    Thanks
      My Computer


  2. Posts : 42,964
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, you could use Autohotkey to create a script including
    Run *RunAs cmd.exe /c sfc /scannow

    Launching the ahk file gives a UAC prompt and the scan starts.

    You can compile the ahk with 1 rt click to produce an exe file.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:22.
Find Us




Windows 10 Forums