Use this when repairing component store corruption.
RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth scans the component store and repairs corruption from Windows Update or a /Source such as install.wim. Run sfc /scannow afterwards.
1. DISM … /RestoreHealth.
2. No WU access → mount matching ISO: /Source:wim:D:\sources\install.wim:<index> /LimitAccess.
3. Source must match build.
4. sfc /scannow after.
5. Check CBS.log for failures.
corrupt component → replacement from WU/source → repaired
Context & applicabilityCommon mistakes · platform/version boundaries
- Error
0x800f081f— source files not found; provide a matching WIM/ESD. - WSUS-managed clients unable to reach Windows Update for repair content.
- Source from a different build or language.
Operational reference
Fast context before you go deeper.
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.
- RestoreHealth needs Windows Update or a matching /Source.
- Run sfc /scannow after it.
- Reboot to finish pending repairs.
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
ReferenceWhy it matters1 section · depth on demand
Repair sources
By default RestoreHealth downloads files from Windows Update. On systems without internet or WSUS-only clients:
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:6 /LimitAccess
Documented example, not captured output. The source must match the installed build and edition (dism /Get-WimInfo shows indexes). Error 0x800f081f means the source files were not found.
ReferenceImportant terms & boundaries2 sections · depth on demand
Using a source
Dism /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess
Documented example, not captured output. The source must be the same version, build and edition (check index with /Get-WimInfo). On WSUS-managed machines, /LimitAccess avoids waiting for Windows Update; alternatively allow repair content from Windows Update via GPO.
In depth
Dism /Online /Cleanup-Image /RestoreHealth repairs the component store from Windows Update or a specified source.
Dism /Online /Cleanup-Image /RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth /Source:WIM:E:\sources\install.wim:3 /LimitAccess
sfc /scannow
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > %USERPROFILE%\Desktop\sfcdetails.txt
The source must match the installed build and edition (WIM index); /LimitAccess avoids Windows Update (useful with WSUS-managed machines). Error 0x800f081f means source files not found.
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 → RestoreHealth. 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%