1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

How to run SFC and find the CBS.Log

Discussion in 'General Tips and Tricks' started by starbuck, Feb 1, 2017.

Thread Status:
Not open for further replies.
  1. starbuck

    starbuck Administrator - Malware Removal Specialist Administrator

    Joined:
    Sep 26, 2009
    Messages:
    3,491
    Location:
    Midlands, UK
    Operating System:
    Windows 10
    CPU:
    AMD Athlon II x2 250 Processor 3.00GHz
    Memory:
    8gb DDR3
    Hard Drive:
    500gb SATA
    Graphics Card:
    ASUS GeForce GTX 960 2gb
    Power Supply:
    650w PowerCool X-Viper
    At some stage in your computers life It may be necessary to run the System File Checker tool (SFC.exe).

    Run the System File Checker tool (SFC.exe)

    Open an elevated command prompt.

    Win7:
    Click Start >> All Programs >> Accessories,
    Now right-click Command Prompt, and then click Run as administrator.
    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.

    Win8 / Win10:
    Right click on the Start button and select Command Prompt (Admin ) from the quick view menu.

    5d28924325b18e0ba203816812d2492c.png

    In the elevated command prompt, type: sfc /scannow

    Make sure that you include a space between the c and /
    and press the Enter key on the keyboard

    e9e19cdcbf35b0cfc0489741e0502cd0.png

    The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.
    The %WinDir% placeholder represents the Windows operating system folder. For example, C:\Windows
    .

    Note Do not close this Command Prompt window until the verification is 100% complete.
    The scan results will be shown after this process is finished.

    After the process is finished, you may receive one of the following messages:
    • Windows Resource Protection did not find any integrity violations.
      This means that you do not have any missing or corrupted system files.
    • Windows Resource Protection could not perform the requested operation.
      To resolve this problem, perform the System File Checker scan in safe mode, and make sure that the PendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp.
    • Windows Resource Protection found corrupt files and successfully repaired them.
      Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.
    • Windows Resource Protection found corrupt files but was unable to fix some of them.
      Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.
    .

    To view the details that are included in the CBS.Log file, you can copy the information to a Sfcdetails.txt file by using the Findstr command, and then view the details in the Sfcdetails.txt.

    To do this:

    Open an elevated command prompt, type:
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%userprofile%\Desktop\sfcdetails.txt

    4ddeb3442c683aae60536a677666195d.png

    and press the Enter key on the keyboard

    Click on the sfcdetails.txt file that was just placed on your desktop to see the SFC scan details (ones with the [SR] tags) in the CBS.LOG.
     
Thread Status:
Not open for further replies.

Share This Page