Pcornel
Windows · DISM & System Repair

RestoreHealth

Cheat sheet · https://pcornel.dk/topic.php?topic=3189

Back to the Topic

Answer

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.

Remember

  • RestoreHealth needs Windows Update or a matching /Source.
  • Run sfc /scannow after it.
  • Reboot to finish pending repairs.

First 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

Verify in this order

corrupt component → replacement from WU/source → repaired

Where it usually breaks

First mismatch in source/package/image/device identity → servicing/setup configuration → installation/activation → reboot/boot/runtime → system/component health → user/workload validation; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3189

Confirmation

Confirm action

Continue?