Skip to content
PCFixWorkbench

System files · Windows 11

Repair corrupt Windows system files with SFC and DISM

Written November 15, 2026

Two built-in tools repair Windows system files, and they fix different layers. DISM repairs the store of known-good files that Windows keeps on the PC. SFC compares the live system files against that store and replaces the ones that do not match. Run DISM first so the store is sound, then SFC — running SFC against a damaged store is why the repair so often reports damage it cannot fix.

What you need

Which tool, in which order

Think of it as a parts shelf and the machine built from it. The component store, in the WinSxS folder, is the shelf. The files Windows actually runs are the machine. SFC checks the machine against the shelf. If the shelf itself holds a damaged part, SFC copies the damage back in and reports that it found corrupt files it could not fix. DISM checks and repairs the shelf. So the order is fixed: DISM first, SFC second, and SFC once more if the first pass reported repairs. Microsoft sets out the same order in Use SFC to repair missing or corrupt system files.

Repair the store with DISM

  1. Ask DISM whether the store is damaged. Run DISM /Online /Cleanup-Image /CheckHealth. It answers in seconds, reporting whether corruption was detected and whether it is repairable. This step changes nothing.
  2. Repair the store. Run DISM /Online /Cleanup-Image /RestoreHealth. This is the slow step — it checks the store against Windows Update and replaces what is damaged. Let it run to 100% even if the bar pauses for minutes at a time. Microsoft documents each switch in Repair a Windows image.
  3. Note the result line. "The restore operation completed successfully" means the shelf is sound. An error naming a missing source means DISM could not reach or use Windows Update — see the snags.

Repair the live files with SFC

  1. Run the scan. In the same administrator prompt, run sfc /scannow. It walks every protected system file and compares it with the store you just repaired.
  2. Restart if SFC repaired anything. Some replacements only settle after a restart. Restart, then run sfc /scannow a second time. A clean second pass is the real finish line — the first pass can repair one file and only then see the next.
  3. If Windows will not start, run SFC from the recovery environment instead. Boot to the recovery environment, open Command Prompt under Advanced options, and run sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows, adjusting the drive letter if the Windows partition shows as a different letter there. The won't-boot guide covers reaching that screen.

Read the results honestly

End state

When it goes wrong

Related fixes

Sources