Quick fix: Open Command Prompt (Admin). Run these in order: dism /online /cleanup-image /restorehealth (15-30 minutes), then sfc /scannow (5-15 minutes), then reboot. DISM repairs the Windows component store (system source) first, so SFC’s file replacement uses a healthy source. Running SFC before DISM may fail to find good copies.
SFC (System File Checker) scans Windows system files for corruption and replaces them with known-good copies. DISM (Deployment Image Servicing and Management) verifies and repairs the Windows component store (where good copies live). Run together for max repair.
Affects: Windows 11 (and Windows 10).
Fix time: ~30-45 minutes total.
What causes this need
System file corruption can cause:
- Random BSODs.
- App crashes for no reason.
- Failed Windows updates.
- Boot failures (rare).
- Functionality oddities (Start menu broken, search not working).
SFC + DISM is the standard repair sequence. Run DISM first to ensure the component store (the source for SFC’s replacements) is healthy.
Method 1: Run DISM first, then SFC
The standard route.
- Open Command Prompt (Admin). (Right-click Start → Terminal (Admin) → switch to cmd if needed.)
- Run DISM:
dism /online /cleanup-image /restorehealthTakes 15-30 minutes. Downloads needed files from Microsoft if local component store is corrupted.
- Watch progress. Doesn’t move smoothly; may pause at 60-80% for several minutes.
- If DISM succeeds: “The restore operation completed successfully.”
- If DISM fails: see Method 3 for sourcing from Windows ISO.
- Now run SFC:
sfc /scannowTakes 5-15 minutes. Scans system files; replaces corrupted ones from component store.
- If SFC finds issues: “Windows Resource Protection found corrupt files and successfully repaired them.”
- Reboot. Test if symptoms resolved.
This is the standard sequence.
Method 2: Verify component store health first
For knowing what to do before running.
- Before full repair, check current health:
dism /online /cleanup-image /checkhealthQuick check. Reports if component store has known corruption.
- For deeper check:
dism /online /cleanup-image /scanhealthTakes longer. Scans component store thoroughly.
- If checkhealth/scanhealth reports issues: run /restorehealth.
- If both report healthy: SFC alone is enough. Run
sfc /scannowas a smaller repair. - For specific component issues:
dism /online /cleanup-image /restorehealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess(if you have ISO mounted at D:). - For Insider builds: keep using /online /cleanup-image; same syntax.
This is the diagnostic step.
Method 3: Use offline source for DISM
For when /restorehealth can’t download (offline / restricted network).
- Download Windows 11 ISO from microsoft.com/software-download/windows11.
- Mount the ISO: right-click .iso → Mount. Note drive letter (e.g., F:).
- Run DISM with offline source:
dism /online /cleanup-image /restorehealth /source:wim:F:\sources\install.wim:1 /limitaccessF: is the mounted ISO drive. install.wim:1 is image index 1.
- /limitaccess prevents fallback to online; uses only the ISO source.
- Useful for: airgapped corporate PCs, slow/unreliable Internet, when Microsoft servers are temporarily unreachable.
- For ESD format ISO: use
install.esdinstead of install.wim. - For multiple image indices:
dism /Get-WimInfo /WimFile:F:\sources\install.wim. Pick matching edition. - After DISM completes: run SFC as normal:
sfc /scannow.
This is the offline-source route.
How to verify the fix worked
- DISM reports: “The restore operation completed successfully.”
- SFC reports: either “found no integrity violations” (already clean) or “found corrupt files and successfully repaired.”
- CBS log shows details:
%windir%\Logs\CBS\CBS.log. Search for repair entries. - Symptoms (BSOD, crashes, broken features) reduced or gone.
- Re-run dism /online /cleanup-image /checkhealth — reports healthy.
If none of these work
If DISM fails: Network issue: try VPN or different connection. Windows Update components broken: separate repair: net stop wuauserv && net stop bits && ren %systemroot%\SoftwareDistribution SoftwareDistribution.old && net start wuauserv && net start bits. Then retry DISM. If SFC reports corrupt files but can’t repair: insufficient component store source. Use Method 3 with offline ISO. For chronic corruption: physical disk issue. Run chkdsk /f /r C: to verify drive health. For persistent BSOD: hardware issue (RAM, GPU). Use Windows Memory Diagnostic + driver checks. Last resort: In-Place Upgrade: mount Windows 11 ISO → run setup.exe from within Windows → pick “Keep files and apps.” Reinstalls Windows while preserving user data.
Bottom line: Run dism /online /cleanup-image /restorehealth first (provides healthy source), then sfc /scannow. Reboot. Use offline ISO source if DISM can’t download.