Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Component Store Troubleshooting

Direct answer

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.

When to use this

Use this when DISM RestoreHealth fails and you need a matching repair source or log analysis.

First 30 seconds

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.

Operational verification

failure → logs name the component → correct source → repair

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows servicing, deployment and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows servicing, deployment and recovery
Scope / prerequisiteUse this when DISM RestoreHealth fails and you need a matching repair source or log analysis.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • DISM /Online /Cleanup-Image /CheckHealth — quick corruption flag check
  • DISM /Online /Cleanup-Image /ScanHealth — full scan
  • DISM /Online /Cleanup-Image /RestoreHealth — repair from Windows Update or /Source
  • sfc /scannow — verify/repair system files
  • Get-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.

StepDurationChanges anything?
CheckHealthSecondsNo
ScanHealthMinutesNo
RestoreHealthMinutes to an hourYes — replaces corrupt components
sfc /scannowMinutesYes — 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

LogContent
C:\Windows\Logs\DISM\dism.logDISM operations and errors
C:\Windows\Logs\CBS\CBS.logComponent servicing details; search for corrupt / Cannot repair
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > C:\Temp\sfc.txtSFC 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows servicing, deployment and recovery current

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%
Confirmation

Confirm action

Continue?