Windows 11 DISM and SFC: Fix System Errors
In this article
Yes, you can repair corrupted system files in Windows 11 using the DISM and SFC commands—DISM fixes the system image, and SFC scans and replaces damaged files. Run them in order from an elevated Command Prompt. This guide walks you through the correct steps, what to expect, and how to handle errors.
What You'll Need
- A Windows 11 PC with administrator access
- Stable internet connection (for DISM if it needs to download files)
- Approximately 30–60 minutes of uninterrupted time
- Power connection for laptops (to prevent shutdown during scan)
Step-by-Step
- Press Windows + X and select Command Prompt (Admin) or Windows Terminal (Admin). If prompted by User Account Control, click Yes.
- In the elevated command window, type
DISM /Online /Cleanup-Image /CheckHealthand press Enter. This quick check verifies if corruption is detected and whether a full repair is needed. It usually takes under a minute. - If the check suggests issues, run the full DISM repair: type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This command contacts Windows Update to download replacement files. It may take 10–30 minutes. Do not close the window or restart your PC during this process. - Once DISM completes successfully (look for "The operation completed successfully"), restart your computer. This ensures all changes are applied before the next step.
- After rebooting, open an elevated Command Prompt again (same as Step 1).
- Type
sfc /scannowand press Enter. This scans all protected system files and replaces incorrect versions with correct ones from the repaired image. The scan typically takes 15–20 minutes. A progress bar will appear—do not interrupt it. - Review the results. If SFC reports "Windows Resource Protection found corrupt files and repaired them," the repair was successful. If it says "No integrity violations detected," your system files are intact.
- Restart your PC one final time to finalize changes.
Common Mistakes
- Running SFC before DISM: If the system image is damaged, SFC can’t repair files properly. Always run DISM first.
- Skipping administrator privileges: Both commands require elevated access. Running them without admin rights will fail silently or return access denied errors.
- Interrupting the process: Closing the command window or restarting during DISM or SFC can leave the system in an unstable state.
- Ignoring internet connectivity: DISM may need to pull files from Windows Update. A poor connection can cause the command to hang or fail.
- Assuming one run fixes everything: Some deep corruption may require multiple passes or additional troubleshooting.
Tips
- Run DISM with a specified source if Windows Update fails: Use
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:drive:\sources\install.wim:1 /LimitAccess, replacing "drive" with your Windows installation media drive letter. - Check DISM log at
C:\Windows\Logs\DISM\dism.logif the command fails. Look for error codes or blocked downloads. - If SFC keeps finding issues after repair, run it a second time—sometimes it catches residual problems on the second pass.
- Use PowerShell as an alternative: Open Windows Terminal as admin and run the same commands—they work identically.
- Check disk health first: Run
chkdsk C: /fif you suspect storage issues, but schedule it for the next restart if the drive is in use.
Troubleshooting
If DISM fails with error 0x800f081f, the system can’t reach the repair source. Connect to the internet or use a Windows 11 installation USB as a local source. If DISM hangs or times out, reset the Windows Update components by stopping the Windows Update service (net stop wuauserv), renaming C:\Windows\SoftwareDistribution, then restarting the service.
If SFC returns "Unable to repair some files," but doesn’t specify which, run it again after a DISM repair. If the issue persists, boot into Safe Mode with Command Prompt and run sfc /scannow from there, as fewer files are in use.
If both tools fail repeatedly, consider using the Windows 11 installation media to perform a repair install—this reinstalls Windows while keeping your files and apps. Avoid system restore unless you’re certain the restore point predates the corruption.
Frequently Asked Questions
Can DISM and SFC fix the Blue Screen of Death?
They can if the cause is corrupted system files. However, hardware issues, drivers, or overheating may also trigger BSODs—run additional diagnostics if problems persist.
How often should I run SFC and DISM?
Only when experiencing system instability, crashes, or update failures. Routine use isn’t necessary on a healthy system.
Do these commands delete my personal files?
No. DISM and SFC only affect Windows system files. Your documents, photos, and apps remain untouched.
What if DISM says it can’t repair the image?
This indicates severe corruption. Use a Windows 11 USB to run DISM with a mounted install.wim file as a source, or consider a repair install.
Can I use these tools in Safe Mode?
Yes. Boot into Safe Mode with Command Prompt and run the same commands. This can help if system files are locked during normal operation.
Does SFC require internet?
No. SFC uses local cached files. However, if those are damaged, you’ll need DISM—which may require internet—to restore the source.