Repair System Files With sfc /scannow

Scan protected Windows files and restore corrupted copies.

WindowssystemadminpowershellDiagnosticsLow risk
Run sfc /scannow from an elevated prompt to scan and repair system files.

01Command

Command
$ sfc /scannow

02What 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

RiskLow risk
RequirementsRun from an elevated Command Prompt
!Warning: Repairs may need Windows installation media or a network source; take a restore point first on production machines.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • sfc
    Microsoft Learn · vendor-doc · 2026-09-20
    Evidence: Scans and repairs protected system files with System File Checker.

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions