How to check and repair system files with SFC on Windows

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!

Hello,

The SFC (System File Checker) tool is a system file checker.
It works on the command line and checks the integrity of system files
It ensures that no system files have been modified based on their digital signatures located in C:\Windows\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}

When to use SFC

When you:
- Have Windows errors or crashes
- Have unexpected behaviour (my last use case involved a laptop keyboard where some keys no longer worked, problem solved with SFC)
- Simply want to check the integrity of system files

Besides, Microsoft’s responses to Windows problems often include a system analysis with SFC.
SFC works on all versions of Windows clients (Windows XP, Windows 8, Windows 8.1, Windows 10 and Windows 11) and Windows server (Windows server 2008, Windows server 2012, Windows server 2016, Windows server 2019, Windows server 2022).

SFC syntaxes and additional information

It is sufficient in a command prompt (cmd) or in PowerShell to execute the following command as administrator:
sfc /scannow

SFC instruments:
/verifyOnly: analyses the integrity of all system files (does not correct).
/scannow: analyses the integrity of all system files and repairs damaged files if possible.
/verifyFile: analyses a particular file (specify path).
/scanFile: scans and repairs a particular file (specify path).
Note: There are arguments for an offline mode that I won’t present here.

Examples: 
sfc /verifyfile=c:\windows\system32\utilman.exe
sfc /scanfile=c:\windows\system32\utilman.exe
sfc /verifyonly
sfc /scannow

Once the analysis is complete a report is sent to c:\windows\Logs\CBS\CBS.log.
It can be opened this way in a cmd or Powershell or Powershell:
notepad c:\windows\Logs\CBS\CBS.log

If it finds corrupted items, but can’t repair them, then you’ll need to repair the component store which contains a backup of the healthy files in C:\Windows\WinSxS\Backup.

More information:
https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e

Video : How to check and repair system files with SFC on Windows

Related links