Use this when DISM RestoreHealth fails and you need a matching repair source or log analysis.
Component Store Troubleshooting
Troubleshoot the component store by running DISM ScanHealth and RestoreHealth, reading C:\Windows\Logs\DISM\dism.log and CBS.log, and providing a matching install.wim as /Source if Windows Update cannot be used.
1. Read CBS.log/dism.log for the failing component.
2. Source matches the build exactly?
3. WSUS-managed clients may need /Source or temporary WU access.
4. Pending actions → reboot first.
5. Last resort: in-place upgrade repair.
failure → logs name the component → correct source → repair
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good means DISM health scan reports no repairable component-store corruption, SFC completes with the expected integrity result, pending servicing state is resolved and the original Windows feature/update/system-file symptom no longer reproduces. Broken evidence includes persistent component errors, source mismatch or CBS entries for unrepaired files. Re-run a scan after repair rather than assuming a successful process exit changed state. The limit of what it shows: DISM/SFC integrity does not show third-party applications, drivers or hardware are healthy.
Step 2 Common mistakes Narrow the fault
- Running SFC before DISM RestoreHealth.
Step 3 Native failure isolation and next-check logic Narrow the fault
If DISM reports corruption, first identify the installed build/edition and whether the machine can reach its configured repair source. If /RestoreHealth fails with source-not-found or payload errors, validate source compatibility and servicing policy rather than cycling the command. If DISM succeeds but SFC still reports unrepaired files, inspect CBS details for the exact components and reboot state. If servicing operations remain pending, resolve that transaction state before layering more repairs. Storage errors or filesystem corruption belong below the component store and must be addressed first if present.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- The repair source must match the installed build exactly.
- dism.log and CBS.log name the failing component.
- WSUS-managed clients may not reach Windows Update for sources.
DISM /Online /Cleanup-Image /CheckHealth— quick corruption flag checkDISM /Online /Cleanup-Image /ScanHealth— full scanDISM /Online /Cleanup-Image /RestoreHealth— repair from Windows Update or /Sourcesfc /scannow— verify/repair system filesGet-Content C:\Windows\Logs\CBS\CBS.log -Tail 50— servicing log
ReferenceHow it works1 section · depth on demand
How it works
DISM component-store repair works against the servicing stack and WinSxS component metadata used to service Windows features, packages and protected system files. /CheckHealth, /ScanHealth and /RestoreHealth answer different questions: flagged corruption, deeper scan, and repair. Repair can need Windows Update or an explicitly compatible source; edition, build and language mismatch can make a source unusable. SFC consumes the repaired component store to restore protected files, so running SFC repeatedly before store health is restored can reproduce the same failure. Preserve DISM/SFC exit codes and CBS/DISM logs before cleanup.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The DISM health ladder
C:\> Dism /Online /Cleanup-Image /CheckHealth
No component store corruption detected.
C:\> Dism /Online /Cleanup-Image /ScanHealth
C:\> Dism /Online /Cleanup-Image /RestoreHealth
C:\> sfc /scannow
Microsoft's image repair guide describes /CheckHealth (reports healthy, repairable or non-repairable), /ScanHealth (thorough scan), /RestoreHealth (repair) and /Source with /LimitAccess to repair from local files instead of Windows Update.
| Step | Duration | Changes anything? |
|---|---|---|
| CheckHealth | Seconds | No |
| ScanHealth | Minutes | No |
| RestoreHealth | Minutes to an hour | Yes — replaces corrupt components |
| sfc /scannow | Minutes | Yes — repairs protected system files from the component store |
Run DISM before SFC: SFC repairs from the component store, so a corrupt store makes SFC fail or "repair" with bad files.
Repair without Windows Update access
Dism /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess
The source must be the same Windows build and edition (index); a mismatched ISO produces 0x800f081f — The source files could not be found. Check the build with winver / Get-ComputerInfo OsBuildNumber, and the index with Dism /Get-WimInfo /WimFile:D:\sources\install.wim.
Read the logs
| Log | Content |
|---|---|
C:\Windows\Logs\DISM\dism.log | DISM operations and errors |
C:\Windows\Logs\CBS\CBS.log | Component servicing details; search for corrupt / Cannot repair |
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > C:\Temp\sfc.txt | SFC results only |
When repair is not enough
Non-repairable stores, repeated corruption, or failing disks (check Get-PhysicalDisk and System log disk events) call for an in-place upgrade repair (setup from the same version, keep files and apps) or reinstall. Repeated corruption on healthy disks often points to storage drivers or security software interfering with servicing.
*The DISM health response illustrates the documented output format and is not a recorded component-store inspection.*
Method
Component store (WinSxS) troubleshooting fixes servicing problems: updates that fail to install, features that cannot be added, or corruption reported by SFC.
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /LimitAccess
sfc /scannow
DISM /Online /Cleanup-Image /AnalyzeComponentStore
DISM /Online /Cleanup-Image /StartComponentCleanup
Order: DISM RestoreHealth first (repairs the component store), then SFC (repairs system files from it). If Windows Update is blocked, supply a matching installation image as source. Logs: C:\Windows\Logs\DISM\dism.log and C:\Windows\Logs\CBS\CBS.log.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DISM & System Repair → Component Store Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism · confidence 94%