Repair the Windows component store with DISM RestoreHealth
Use the Deployment Image Servicing and Management tool to detect and repair corruption in the Windows component store, the layer SFC depends on.
01Command
$ DISM /Online /Cleanup-Image /RestoreHealth02What it does
DISM checks the health of the online Windows image with a hidden corruption flag and payload corruption check, then restores the component store using Windows Update or a specified `/Source` such as a mounted install ISO. It can take 10-30 minutes and may appear stuck near 20% or 40% — that is normal, let it finish. Run `DISM /Online /Cleanup-Image /CheckHealth` for a quick flag check or `/ScanHealth` for a full but read-only scan. DISM repairs the store SFC draws from, so always follow it with SFC for a complete repair chain.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- What is DISM? | Microsoft LearnEvidence: Microsoft describes DISM as a tool that services Windows images, including repairing the component store of a running online image.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.