Scan and repair Windows system files with SFC
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
01Command
$ sfc /scannow02What it does
SFC compares every file in the Windows component store's protected list against a manifest and pulls clean replacements from WinSxS or Windows installation media. The scan takes 5-20 minutes and writes progress to the console. Read the summary at the end: it either found no violations, repaired files, or could not fix everything. When it cannot complete a repair, run `DISM /Online /Cleanup-Image /RestoreHealth` first and re-run SFC. Full details are logged in `%windir%\Logs\CBS\CBS.log` (filter with `findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log`).
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- sfc | Microsoft LearnEvidence: Microsoft documents that 'sfc /scannow' scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.
- System File Checker (sfc) - Windows CMDEvidence: SS64 describes the /scannow switch as scanning all protected system files immediately and repairing problems found.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Use the Deployment Image Servicing and Management tool to detect and repair corruption in the Windows component store, the layer SFC depends on.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.