Command reference

DISM /Online /Cleanup-Image /RestoreHealth

Scan and repair the component store of the running Windows installation.

Syntax
DISM /Online /Cleanup-Image /RestoreHealth
Purpose
Repairs servicing-image corruption that can prevent Windows Update or SFC from obtaining sound system files.
Administrator
Yes — run from an elevated terminal.
Risk
Moderate; DISM changes the component store, may use Windows Update as a source, and must not be interrupted.
Windows support
Windows 11 and Windows 10

When to use it

  • SFC reports files it cannot repair
  • Windows servicing or several built-in components show corruption symptoms

When not to use it

  • Power is unreliable or a restart is imminent
  • Storage diagnostics indicate a failing drive
  • A single third-party app is the only fault

Steps

  1. Back up work, connect AC power, and confirm internet access if Windows Update will be the source.
  2. Run the command and let it finish even if the percentage pauses.
  3. After a successful restore, run sfc /scannow, restart, and retest the original symptom.

Expected result

DISM reports that the restore operation completed successfully, or returns a specific source or servicing error for separate diagnosis.

Limitations

  • It may need Windows Update or installation media matching the installed Windows release.
  • It does not repair applications, user data, device firmware, or hardware.