Logic Foundry

Build with understanding.

Repair a Windows component store with three DISM commands

When damaged Windows system files cause errors or failed updates, the built-in Deployment Image Servicing and Management (DISM) tool can check and repair the Windows component store. Open Command Prompt or PowerShell as an administrator to run these commands against the current installation:

  1. Check for known corruption: DISM /Online /Cleanup-Image /CheckHealth quickly reports whether corruption has already been flagged and whether it is repairable.
  2. Run a fresh scan: DISM /Online /Cleanup-Image /ScanHealth checks the component store and may take several minutes.
  3. Attempt a repair: DISM /Online /Cleanup-Image /RestoreHealth scans for corruption and attempts to repair it. By default, it obtains needed files through Windows Update.

Here, /Online selects the running Windows installation; /Cleanup-Image selects image-servicing operations.

If Windows Update cannot supply repair files

If Windows Update is also damaged, the guide describes using an official Windows ISO as the repair source. Download the ISO from Microsoft and mount it in Windows. In an administrator Command Prompt, check which edition index matches your installed Windows edition, replacing D: with the mounted ISO’s drive letter:

DISM /Get-ImageInfo /ImageFile:D:\sources\install.wim

Then substitute that drive letter and the matching index for D: and 6 in the repair command:

DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:6 /LimitAccess

After DISM finishes, run sfc /scannow to check and repair damaged or missing system files. The guide notes that Microsoft recommends running DISM first because System File Checker relies on the component store that DISM repairs.