8 min read · Updated 2026-11-27
Windows repair commands: what they do and when to use them
Windows repair commands are useful, but they are not magic. Run them in order, back up first, and do not run destructive disk repairs on a drive that may be failing.
System File Checker
SFC scans protected Windows files and replaces corrupted versions from the local component store. Open Command Prompt as administrator and run sfc /scannow. It can take several minutes.
DISM RestoreHealth
DISM repairs the component store that SFC uses. Run DISM /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt, then run SFC again. It needs a working internet connection for some repairs.
chkdsk
chkdsk C: /scan is an online read-only scan. chkdsk C: /f attempts repairs and usually needs a restart. chkdsk C: /r scans for bad sectors and can take hours. Never run /f or /r without a backup.
Windows Update troubleshooter
Free disk space, disconnect unnecessary peripherals and run Settings → System → Troubleshoot → Other troubleshooters → Windows Update. If an update fails repeatedly, note the error code before changing anything.
Test this machine
Run the free Level 1 check and get a report for this PC.