Skip to content
Theme
OnDevice Tools

WindowsWindows Updates

DISM commands that can repair damaged Windows system files

Engadget explains how CheckHealth, ScanHealth and RestoreHealth work, and how an official Windows ISO can supply repair files when Windows Update is broken.

Illustration of a Windows laptop showing a command prompt with DISM repair commands

Key takeaways

  • Engadget describes three DISM commands for Windows system file repair: CheckHealth, ScanHealth and RestoreHealth.
  • CheckHealth is quick, ScanHealth runs a new scan, and RestoreHealth attempts repairs through Windows Update by default.
  • If Windows Update is broken, an official Windows ISO can act as the repair source.
  • Microsoft recommends running DISM before sfc /scannow, according to the guide.
In this article
  1. What the three commands do
  2. Why the component store matters
  3. When Windows Update cannot supply files
  4. What to do after the repair

What the three commands do

The commands share a common opening: DISM /Online /Cleanup-Image. The /Online switch applies the action to the running Windows installation, and /Cleanup-Image handles recovery work. Engadget notes that both Command Prompt and PowerShell can run them, but administrator rights are needed for system-level changes.

CheckHealth is a quick check. Engadget says it reports whether Windows has already recorded corruption in system files and whether that damage can be fixed. The guide suggests starting there because the check takes little time.

ScanHealth carries out a new scan instead of relying on earlier records. Engadget reports that it may take several minutes and gives a current report on the component store. RestoreHealth then scans that store and tries to repair corruption automatically, using Windows Update for replacement files by default.

Why the component store matters

Illustration: shopping, storage, Windows logo, update and the labels Dism, Microsoft, System File Checker

The component store is a guarded internal collection of system files that Windows uses to maintain, update and tailor the operating system. Engadget explains that damage there can cause system errors, features that fail to work and freezes. Ordinary troubleshooting may not be enough to restore the files, which is where DISM comes in.

DISM works only on system files, according to the guide, and does not change personal files. That distinction matters for users who are worried about documents or photos during a repair.

When Windows Update cannot supply files

RestoreHealth normally gets clean files from Windows Update. Engadget notes that the same damage can also stop Windows Update from working, leaving DISM without a download source. The guide says an official Windows installation image can be used instead.

Users can download a Windows ISO from Microsoft's official download page and mount it by right-clicking the file. Windows assigns the mounted image a drive letter. Engadget then describes a DISM command that lists the Windows editions in the image and their index numbers, so the correct edition can be chosen.

With the image mounted, the guide describes running RestoreHealth with /Source:WIM and /LimitAccess options. The drive letter and index number must match the mounted ISO and the installed edition. This points DISM at the local image rather than Windows Update.

What to do after the repair

After RestoreHealth finishes, Engadget recommends running sfc /scannow to repair damaged or missing system files. The guide says Microsoft advises DISM before System File Checker because SFC relies on a healthy component store when it replaces files.

Users should turn to Microsoft's official guidance if errors continue after both tools have run. The article presents the commands as a way to address damaged system images.

Sources

  1. The three DISM commands you should know to fix your Windows system imagesEngadget

Tags

Spotted a mistake? See our corrections policy. Read how News by OnDevice works in our editorial policy.