SFC (System File Checker) and DISM (Deployment Image Servicing and Management) are both built into Windows and both repair corruption, but they work at different levels.

The short version
- SFC checks protected system files and replaces damaged ones with good copies from the component store.
- DISM repairs the component store itself, downloading clean files from Windows Update if needed.
- If the store is damaged, SFC can’t fix files, because its source is bad. That’s why you run DISM first.
Run them in this order
Open Terminal (Admin) and run:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Each can take 10–20 minutes, and DISM may look stuck at 20% or 62% for a while. That’s normal. Restart when both finish.
Reading SFC results
| Message | Meaning |
|---|---|
| Did not find any integrity violations | System files are fine |
| Found corrupt files and successfully repaired them | Fixed. Restart and test |
| Found corrupt files but was unable to fix some of them | Run DISM, restart, then run SFC again |
| Could not perform the requested operation | Run SFC from Safe Mode |

Other useful DISM commands
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /StartComponentCleanup
- CheckHealth: quick check for known corruption.
- ScanHealth: deeper scan, no repairs.
- StartComponentCleanup: removes old update files to free space.
When DISM can’t download repair files
If DISM fails with error 0x800f081f, mount a Windows ISO that matches your version, then point DISM at it (replace D: with the mounted drive letter):
DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess
If the ISO contains install.esd instead, use /Source:ESD:D:\sources\install.esd:1, and change the index number to match your edition.