sfc /scannow runs completely then disappears

Page 2 of 2 FirstFirst 12

  1. Posts : 119
    win8pro 32 bit win 7Ulitmate 32 bit
       #11

    bleepingcomputer help forum recommends this program/tool called windows all in one repair tool ,has a few function ,but one I do use is that it will run SFC /scannow for you from the desktop , from wwwtweakingcom
    Windows Repair (All In One)
      My Computer


  2. Posts : 256
    Win 7 ultimate x64 sp1
       #12

    the tweaking.com all-in-one reair util is a good one, i recommend it to everyone.

    the sfc option (step 3) does indeed run it, but doesn't provide any result details (like my script does)
      My Computer


  3. Posts : 59
    Windows 7 Professional 64bit
    Thread Starter
       #13

    Quick update.

    The system forced itself to revert to a restore point and right now everything except one legacy program is working fine. I can live with that one fussy app so, for now, I'm not rocking any boats.

    There's one program that got removed the by the restore. It's called "Fences" and is supposed to be compatible so I'll give it another try AFTER setting a new point.

    Anyway, for now I'm calling this done. I know we didn't actually solve it but I'm content to let it ride for now. I have made a record the the thread and will have options if/when it happens again.

    SevenForums is just a great place to go when trouble strikes. So meanwhile, many, many thanks to you very fine helpers. Elves?

    G.
      My Computer


  4. Posts : 2,171
    Windows 7 Ultimate x64
       #14

    Certainly glad to hear you're stable.

    By the way, for future reference, if you run sfc per the tutorial posted by koolkat the command window you run it in will not disappear as the command completes. If it found problems you'll have to dig further, but if it comes up clean you'll see it in the window.

    Gorham said:
    I'm trying to scan my system to find out why I keep getting the infamous "has stopped working" message. I'll post that separately. But my problem with the scan is that the window comes up and the scan runs all the way to 100% and then the window closes. Actually I can only see it to 99% because of that automatic closing.

    From all I've read, I'm supposed to get information from that window even if it doesn't find any problems.

    So not *it* seems to be a problem.

    Suggestions, as always, most welcome and received with thanks.

    "G"
      My Computer


  5. Posts : 59
    Windows 7 Professional 64bit
    Thread Starter
       #15

    F5ing said:
    Certainly glad to hear you're stable.

    By the way ...
    Thanks for that bit. Uh... it's the computer that's (reasonably) stable. Certainly not me!!
      My Computer


  6. Posts : 2,171
    Windows 7 Ultimate x64
       #16

    Gorham said:
    F5ing said:
    Certainly glad to hear you're stable.

    By the way ...
    Thanks for that bit. Uh... it's the computer that's (reasonably) stable. Certainly not me!!
    Hmm. So you'll fit in just right around here. :)
      My Computer


  7. Posts : 1
    windows 8 x64
       #17

    Scans and replaces any Microsoft Windows file on the computer
    and replaces any changed file with the correct version. This is a
    great command to run when you are running into an issue that is
    difficult to troubleshoot.

    Tested on Windows 8

    SFC - system file checker tool
    created by orpretsaM

    PS: I'm the orpretsaM.

    open notepad and paste this code, save as batch file

    Name:
    SFC-system_file_checker_tool-by_orpretsaM.bat

    Code:


    Code:
    @ECHO OFF
    mode 80,15
    TITLE Check Privileges - By: orpretsaM
    
    ::checkPrivileges
    ::--------------------------------------------------------------------------
    NET FILE 1>NUL 2>NUL
    if '%errorlevel%' == '0' (
    if '%~n0' == 'SFC-system_file_checker_tool-by_orpretsaM' (
    GOTO:gotPrivileges
    ) ELSE (
    setlocal DisableDelayedExpansion
    set "batchPath=%~0"
    set "batchDP=%~dp0"
    set "batchName=SFC-system_file_checker_tool-by_orpretsaM"
    setlocal EnableDelayedExpansion
    (
    ECHO Set UAC = CreateObject^("Shell.Application"^)
    ECHO Set Fso = WScript.CreateObject^("Scripting.FileSystemObject"^)
    ECHO Fso.MoveFile "!batchPath!", "!batchDP!!batchName!.bat"
    ECHO UAC.ShellExecute "!batchDP!!batchName!.bat", "ELEV", "", "runas", 1
    ) > "%temp%\OEgetPrivileges.vbs"
    "%temp%\OEgetPrivileges.vbs"
    exit /B
    )
    ) ELSE (
    if '%~n0' == 'SFC-system_file_checker_tool-by_orpretsaM' (
    if '%1'=='ELEV' (shift & GOTO:gotPrivileges)
    echo msgbox "Current permissions inadequate. Administrative permissions required. Run as administrator." ,0 + 16, "System File Checker Tool - By: orpretsaM" > "%temp%\checkPrivileges.vbs"
    start /wait %temp%\checkPrivileges.vbs
    del /F "%temp%\checkPrivileges.vbs"
    CLS
    for /l %%i in (100,-1,1) do (
    ECHO.
    ECHO **************************************
    ECHO Invoking UAC for Privilege Escalation
    ECHO **************************************
    ECHO Invoking UAC in %%i%% &Ping -n 1 0.0.0.0>nul 2>&1
    CLS
    )
    
    setlocal DisableDelayedExpansion
    set "batchPath=%~0"
    set "batchDP=%~dp0"
    set "batchName=SFC-system_file_checker_tool-by_orpretsaM"
    setlocal EnableDelayedExpansion
    (
    ECHO Set UAC = CreateObject^("Shell.Application"^)
    ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1
    ) > "%temp%\OEgetPrivileges.vbs"
    "%temp%\OEgetPrivileges.vbs"
    exit /B
    ) else (
    if '%1'=='ELEV' (shift & GOTO:gotPrivileges)
    echo msgbox "Current permissions inadequate. Administrative permissions required. Run as administrator." ,0 + 16, "System File Checker Tool - By: orpretsaM" > "%temp%\checkPrivileges.vbs"
    start /wait %temp%\checkPrivileges.vbs
    del /F "%temp%\checkPrivileges.vbs"
    CLS
    for /l %%i in (100,-1,1) do (
    ECHO.
    ECHO **************************************
    ECHO Invoking UAC for Privilege Escalation
    ECHO **************************************
    ECHO Invoking UAC in %%i%% &Ping -n 1 0.0.0.0>nul 2>&1
    CLS
    )
    
    setlocal DisableDelayedExpansion
    set "batchPath=%~0"
    set "batchDP=%~dp0"
    set "batchName=SFC-system_file_checker_tool-by_orpretsaM"
    setlocal EnableDelayedExpansion
    (
    ECHO Set UAC = CreateObject^("Shell.Application"^)
    ECHO Set Fso = WScript.CreateObject^("Scripting.FileSystemObject"^)
    ECHO Fso.MoveFile "!batchPath!", "!batchDP!!batchName!.bat"
    ECHO UAC.ShellExecute "!batchDP!!batchName!.bat", "ELEV", "", "runas", 1
    ) > "%temp%\OEgetPrivileges.vbs"
    "%temp%\OEgetPrivileges.vbs"
    exit /B
    ))
    GOTO:eof
    
    :gotPrivileges
    TITLE System File Checker Tool - By: orpretsaM
    if exist '%temp%\OEgetPrivileges.vbs' (del /F '%temp%\OEgetPrivileges.vbs')
    if exist '%temp%\ChangeName.vbs' (del /F '%temp%\ChangeName.vbs')
    CLS
    ECHO Options available:
    ECHO.
    ECHO  1. INFO
    ECHO  2. Verify only
    ECHO  3. Scan and repair
    ECHO  4. Exit
    ECHO.
    CALL:info
    :TOP
    CLS
    ECHO Options available:
    ECHO.
    ECHO  1. INFO
    ECHO  2. Verify only
    ECHO  3. Scan and repair
    ECHO  4. Exit
    ECHO.
    SET /P TWK=Enter one option:
    IF "%TWK%"=="4" exit
    IF "%TWK%"=="3" goto SR
    IF "%TWK%"=="2" goto VO
    IF "%TWK%"=="1" CALL:info && GOTO:TOP
    CLS
    ECHO ERROR : Enter one available option
    pause
    GOTO:TOP
    
    :VO
    SFC /VERIFYONLY
    PAUSE
    GOTO:TOP
    
    :SR
    SFC /SCANNOW
    PAUSE
    GOTO:TOP
    
    :info
    echo msgbox "Scans and replaces any Microsoft Windows file on the computer and replaces any changed file with the correct version. This is a great command to run when you are running into an issue that is difficult to troubleshoot." ,0 + 64, "System File Checker Tool - By: orpretsaM" > "%temp%\info.vbs"
    start /wait %temp%\info.vbs
    del /F "%temp%\info.vbs"
    GOTO:eof
    Last edited by orpretsaM; 30 Jan 2015 at 18:26. Reason: errors
      My Computer


 
Page 2 of 2 FirstFirst 12

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

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