How to check and repair system files with SFC on Windows
1 min read · Updated 2 October 2021
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 to execute the following command as administrator in a command prompt (cmd) or in PowerShell:
sfc /scannow
SFC options:
/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 written to c:\windows\Logs\CBS\CBS.log.
It can be opened this way in a cmd 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.
Video : How to check and repair system files with SFC on Windows
Related links
- Maintenance
The difference between updates and upgrades
A video to explain the terms upgrade, update, quality update and functionality update
1 min read
- Maintenance
Windows - How to run a memory test to detect faulty RAM
Run the Windows built-in memory diagnostic to check whether faulty RAM is causing blue screen crashes, shown in a video.
1 min read
- Maintenance
Fix an Active Directory sign-on approval relationship error
How to fix a sign-on approval relationship error in Active Directory
2 min read
- Tips
How to create a multiboot USB key with the Ventoy tool
It's useful to have a multiboot USB stick containing operating system images or troubleshooting tools that you can boot from if you need to
1 min read
- Maintenance
Clean the Windows Installer Folder Safely
What the Windows Installer folder contains, why you should not empty it by hand, and how to remove orphaned MSI/MSP files safely with PatchCleaner.
1 min read
- Maintenance
5 ways to achieve Windows recovery (WinRe) on Windows 10 and 11
Five different methods to reach the Windows Recovery Environment (WinRe) troubleshooting tool on Windows 10 and Windows 11.
1 min read
New site · Reference
The Windows directory tree
Native Windows folders, files and logs: what they are for, what they contain, with commands and Microsoft sources.
Browse the treeNew site · Reference
Group Policy settings
ADMX settings for Windows 10, 11, Server and applications: registry keys, PowerShell commands and use cases.
Browse the policies