Quick fix: Open Command Prompt (Admin). Run sequentially: dism /online /cleanup-image /scanhealth (15-30 min, identifies issues). Then dism /online /cleanup-image /restorehealth (15-30 min, repairs). Then sfc /scannow (5-15 min, repairs system files). Reboot. Repair complete. For Update-specific corruption: focus on /restorehealth.
DISM (Deployment Image Servicing and Management) repairs the Windows component store, which Windows Update relies on. When updates fail or Windows shows odd behavior, DISM is the standard repair tool. Run before SFC for max effect.
Affects: Windows 11 (and Windows 10).
Fix time: ~45 minutes.
What causes this need
Windows component store (C:\Windows\WinSxS) holds all installed Windows files. Corruption from: failed updates, disk errors, malware, bad shutdowns. Symptoms:
- Updates fail repeatedly with cryptic codes.
- SFC reports files it can’t repair (needs healthy source from component store).
- Apps behave oddly, crash.
- Windows features (Print Spooler, Audio) intermittently fail.
Method 1: Run DISM repair sequence
The standard route.
- Open Command Prompt as Admin.
- First check health (quick):
dism /online /cleanup-image /checkhealthFast, reports if known corruption.
- If reports healthy: SFC alone may suffice. Skip to step 5.
- For thorough scan (longer):
dism /online /cleanup-image /scanhealthTakes 15-30 min. Detects issues even if checkhealth missed.
- If issues found, repair:
dism /online /cleanup-image /restorehealthTakes 15-30 min. Downloads needed files from Windows Update by default.
- After DISM completes:
sfc /scannow. Repairs system files using healthy source from DISM-fixed component store. - Reboot.
- Test: try the previously-failing operation (Windows Update, app launch).
This is the standard fix.
Method 2: Use offline source if Windows Update broken
For when WU is the problem.
- If DISM /restorehealth fails because Windows Update is broken:
- Download Windows 11 ISO from microsoft.com/software-download/windows11.
- Mount: 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 /limitaccess- /source:wim:: specify install.wim location.
- :1: image index (1 for first edition; adjust based on dism /Get-WimInfo).
- /limitaccess: don’t fall back to Windows Update.
- Wait. Repair uses ISO files.
- For specific edition match:
dism /Get-WimInfo /WimFile:F:\sources\install.wim. - For .esd format: use
install.esdinstead of install.wim. - After DISM: run
sfc /scannow.
This is the offline-source route.
Method 3: Cleanup superseded versions
For component store too large.
- WinSxS folder can grow large (10-30GB over years).
- Cleanup superseded components:
dism /online /cleanup-image /startcomponentcleanupRemoves older versions of components after install.
- For aggressive cleanup:
dism /online /cleanup-image /startcomponentcleanup /resetbaseRemoves all superseded versions. Use cautiously: can’t uninstall updates installed before this.
- Reduces WinSxS by 1-5GB usually.
- For analyzing component store size:
dism /online /cleanup-image /analyzecomponentstoreShows: total size, actual size, backup size, dates, recommendations.
- For specific feature removal:
dism /online /disable-feature /featurename:[name]. - For installed updates:
dism /online /get-packageslists installed update packages.
This is the cleanup route.
How to verify the fix worked
- DISM /checkhealth returns: “No component store corruption detected.”
- SFC /scannow returns: “No integrity violations” or “Successfully repaired.”
- Windows Update now works.
- Apps and features stop misbehaving.
%windir%\Logs\CBS\CBS.logshows successful repair entries.
If none of these work
If DISM fails: Network issue: DISM downloads files. Test internet. Wrong ISO version: ISO must match installed Windows build. Disk full: ensure 10GB+ free on C:. Antivirus blocking: pause third-party AV temporarily. For chronic update component corruption: in-place upgrade via Windows 11 ISO setup.exe. Reinstalls Windows preserving data. For specific error 0x800f081f (source missing): use offline ISO source (Method 2). For ARM Windows: ensure ARM64 ISO. Last resort: clean install: Reset This PC → Cloud download. Refreshes Windows + component store from scratch.
Bottom line: dism /online /cleanup-image /restorehealth + sfc /scannow. For broken WU: use ISO source with /source:wim:. For large WinSxS: dism /online /cleanup-image /startcomponentcleanup /resetbase.