Windows acting up after an update, apps crashing, or an error that mentions a missing DLL: the standard advice is “run sfc /scannow and DISM”. But which one, in which order, how long should it take, and what do you do when it fails?
Instead of repeating the usual list, I damaged Windows 11 system files on purpose in a test PC, in four different ways, and recorded exactly what SFC and DISM did each time. Here’s what each command really fixes, with the timings.
Quick answer: the commands, in order
Open Terminal (Admin) or Command Prompt (Admin) and run:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannowRun DISM first and let it finish (on my PC 11 to 19 minutes), then SFC (3 minutes). Restart afterwards. This is the order Microsoft gives, “because DISM provides the files required to repair your corrupted files” (Microsoft), and my tests below show why.
What SFC and DISM actually do
Windows keeps a reference copy of every system file in the component store (C:\Windows\WinSxS). Most files in C:\Windows\System32 are actually the same file as their copy in WinSxS (a “hard link”), which is why WinSxS looks bigger in Explorer than it really is.
| Tool | Checks | Repairs from |
|---|---|---|
SFC (sfc /scannow) | Your protected Windows files (System32 and others) | The component store |
DISM (/RestoreHealth) | The component store itself | Windows Update, or a Windows ISO you point it to |
| CHKDSK | The file system on the drive (NTFS errors, bad sectors) | — |
So SFC can only be as good as the store, and DISM never touches your live Windows files.
What I found when I broke Windows on purpose
I used winver.exe as the test file, damaged it in different ways on a Windows 11 PC on the November 2026 update, and ran the tools after each.
| What was damaged | SFC alone | DISM | Fixed? |
|---|---|---|---|
| The Windows file only (backup copy fine) | “found corrupt files and successfully repaired them” (3.3 min) | not needed | Yes, SFC alone |
| The backup copy only (missing from WinSxS) | “found corrupt files but was unable to fix some of them” (3.0 min) | ScanHealth: “repairable”; RestoreHealth fixed it (13.4 min) | Yes, DISM |
| Both the file and its backup | “unable to fix some of them” (3.0 min) | RestoreHealth fixed the backup (11.7 min), not the file | Yes, DISM and then SFC (3.0 min) |
| Both, with no internet | — | Error 0x800f0915 “The repair content could not be found anywhere” | Yes, with the ISO as source (3.2 min), then SFC |
| Nothing (freshly updated PC) | “did not find any integrity violations” | ScanHealth: “repairable”; RestoreHealth fixed 1,783 items (18.9 min) | SFC missed it |
Three things stood out:
- When both copies were bad, SFC’s log said exactly why it failed: “Could not reproject corrupted file … source file in store is also corrupted”. After DISM repaired the store, my damaged Windows file was still damaged until I ran SFC again. That’s the whole reason for the order.
- **
DISM /CheckHealthmissed real damage.** With the backup copy deleted, CheckHealth said “No component store corruption detected” in 10 seconds, while ScanHealth found it. CheckHealth only reports what an earlier scan already recorded. - “No integrity violations” from SFC doesn’t mean the store is healthy. My test PC had only ever been updated by Windows Update, and DISM still found 1,783 problems that SFC never mentioned (1,781 were file-flag errors and two were damaged files in a firmware-update component). RestoreHealth fixed all of them.
The right order: DISM, then SFC
- Optional: check first.
DISM /Online /Cleanup-Image /ScanHealth(about 3.5 minutes on my PC) tells you whether the store is “repairable”. Skip/CheckHealth: it can miss damage, as above. - Repair the store:
DISM /Online /Cleanup-Image /RestoreHealth. Stay connected to the internet: it downloads good copies from Windows Update. On my PC it took 11 to 19 minutes, and the progress bar sat still for minutes at a time. That’s normal; check that the disk is busy in Task Manager before assuming it’s stuck. - Repair Windows files:
sfc /scannow(3 minutes on my PC, every time). - Restart, then run
sfc /scannowonce more. It should say “did not find any integrity violations”.
When DISM fails: 0x800f0915 and 0x800f081f
With the PC offline, DISM failed after 3.5 minutes:
Error: 0x800f0915
The repair content could not be found anywhere.
Check the internet connectivity or use the "Source" option to specify the location of the files that are required to restore the image.Many guides describe this situation as 0x800f081f (“The source files could not be found”). On Windows 11 25H2 and 26H2 I got 0x800f0915, an error that isn’t in Microsoft’s own list of DISM error codes. Both mean the same thing: DISM had no place to get good files from.
Fix 1: connect to the internet and run RestoreHealth again (Windows Update is the default source).
Fix 2: use a Windows ISO as the source.
- Download the Windows 11 ISO from Microsoft (same language as your Windows; the same or a newer version is best).
- Double-click it to mount it. Note its drive letter (F: below).
- Find the index of your edition:
DISM /Get-WimInfo /WimFile:F:\sources\install.wimOn the Windows 11 26H2 ISO, Pro is index 6 and Home is index 1 (Education 4, Pro for Workstations 10). If the file is install.esd instead, use it with the esd: prefix.
- Run RestoreHealth with the source:
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:F:\sources\install.wim:6 /LimitAccessOn my PC this worked in 3.2 minutes. Two details matter: the **wim: prefix and the :6 index**. With just /Source:F:\sources\install.wim, DISM failed with the same 0x800f0915.
A 26H2 ISO repaired my 25H2 PC: both versions share the same system files. Microsoft warns that a source older than your installed updates “may fail” (Microsoft): the ISO has the original files, not the ones changed by later updates. If the ISO doesn’t work, go back to Fix 1.
Fix 3 (Windows 11): reinstall Windows from Settings. Settings > System > Recovery > Fix problems using Windows Update > Reinstall now reinstalls the current version and keeps your apps, files and settings (Microsoft).
Other DISM errors you may see (Microsoft):
| Error | Means |
|---|---|
| 0x800f081f | Source files not found (as above) |
| 0x800f0906 | Download of repair content failed (often a proxy or WSUS server) |
| 0x800f0954 | Usually a PC that gets updates from WSUS that can’t supply repair files |
| 0x80073712 | Component store inconsistent |
When SFC says unable to fix some of them
That’s the case where the store copy is damaged too (my third test). Run DISM RestoreHealth, then SFC again. To see which file it couldn’t fix, run:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt"Open sfcdetails.txt on your desktop and look for lines with “Cannot repair member file”. The file lists every SFC run, so check the times.
How long do SFC and DISM take?
On a Windows 11 PC with 4 processors and an SSD, nothing else running:
| Command | Time |
|---|---|
sfc /verifyfile= (one file) | 10 seconds |
sfc /scannow | 3.0 to 3.3 minutes (8 runs) |
sfc /verifyonly | 3.3 minutes |
DISM /CheckHealth | 10 seconds |
DISM /ScanHealth | 3.3 to 3.8 minutes |
DISM /RestoreHealth (Windows Update) | 10.8 to 18.9 minutes |
DISM /RestoreHealth (ISO source) | 3.2 minutes |
chkdsk C: /scan | 20 seconds |
A hard disk instead of an SSD, a slower processor or a slow connection all make these longer. If SFC stops at a percentage, give it at least half an hour before restarting.
And CHKDSK?
CHKDSK checks the file system (the drive’s structure), not Windows files. Run it if you see disk errors, not as a first step for broken Windows files. chkdsk C: /scan checks online in seconds; chkdsk C: /f fixes errors at the next restart. If “Scanning and repairing drive C” appears at every boot, that’s CHKDSK, not SFC.
Old SFC switches that no longer exist
Some guides still list /scanboot, /revert, /purgecache and /cachesize. Those were Windows XP switches. On Windows 11 (sfc /? on my PC), SFC only has /scannow, /verifyonly, /scanfile, /verifyfile and the offline options /offwindir, /offbootdir and /offlogfile.
How I tested this
On 29 November 2026, on a Hyper-V virtual machine with Windows 11 Pro 25H2 (26200.9974, the November 2026 update; 26H2 has identical system files), 4 virtual processors, 5 GB of memory and an SSD-backed disk, with a checkpoint to go back to:
- Timed every command at baseline, without any damage.
- Damaged
C:\Windows\System32\winver.exefour ways: the live file only, the WinSxS copy only (deleted), both (overwritten through the hard link), and both with the network disconnected. Ran SFC and DISM after each and checked the file hashes and the CBS log. - Repaired from the official Windows 11 26H2 ISO (26300.9457), with and without the
wim:prefix and index. - Limits: one file, one PC, an SSD. I didn’t test Windows 10, a hard disk, an
install.esdsource, or the Settings reinstall option.
FAQ
Should I run SFC or DISM first? DISM first, then SFC. SFC repairs from the store that DISM fixes.
Is it safe to run SFC and DISM? Yes. Both only replace Windows files with Microsoft’s own copies. Your files and apps aren’t touched.
Can I use my PC while they run? Yes, but it’ll be slower. Don’t restart until they finish.
DISM is stuck at 62.3% (or 20%). What do I do? Wait. On my PC the progress didn’t move for minutes at a time while the work continued. If the disk shows no activity for over an hour, restart and run it again.
**Does sfc /scannow need internet?** No. DISM RestoreHealth does, unless you give it an ISO as the source.
If SFC or DISM gives you an error that isn’t here, post the exact message in the comments and I’ll help you work out what’s wrong.






