Repair System Files With sfc /scannow
Scan protected Windows files and restore corrupted copies.
01Command
$ sfc /scannow02What it does
System File Checker compares protected files against a cached copy and replaces corrupt ones, resolving many puzzling crashes and update failures. It is a console tool by design and is often scripted as the first step of a repair workflow.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- sfcEvidence: Scans and repairs protected system files with System File Checker.
Last verified: 2026-10-13 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.
Use the Deployment Image Servicing and Management tool to detect and repair corruption in the Windows component store, the layer SFC depends on.