What DISM does
DISM.exe talks to Component-Based Servicing (CBS)—the same subsystem that backs sfc—to service the live component store under WinSxS and optional features. Online repairs fix inconsistencies that prevent Windows Update or SFC from trusting local repair payloads. Offline DISM can patch a mounted Windows image (WIM/VHD) from WinPE or another OS.
Online health and repair
| Command pattern | Purpose | Notes |
|---|---|---|
DISM /Online /Cleanup-Image /ScanHealth | Longer integrity scan of the store | Read-only check; good first deep signal |
… /CheckHealth | Fast flag check | Lightweight; may report corruptions flagged earlier |
… /RestoreHealth | Repair using replacement payloads | Needs Windows Update reachability or an explicit /Source image |
Repair sources
When Windows Update is blocked, supply a matching install.wim or install.esd from installation media with /Source:wim:D:\sources\install.wim:1 (index varies) and often /LimitAccess to avoid falling back to Windows Update. Mismatched editions or builds produce HRESULT errors—align SKU, language, and build closely.
Order of operations with SFC
If sfc /scannow cannot repair files, run DISM /RestoreHealth first to heal the store, reboot if pending operations exist, then rerun SFC. DISM logs to %windir%\Logs\DISM\dism.log; CBS still logs broader servicing to %windir%\Logs\CBS\CBS.log.
Related: Windows SFC explained, CMD commands, CMD vs PowerShell.