Table of Contents
Use DISM /Online /Cleanup-Image /RestoreHealth to repair the component store used by your running Windows installation. After a successful repair, run sfc /scannow to check protected system files. These tools address corruption; they do not fix every driver, hardware, or application problem.
1. Open an administrator terminal
Save your work and keep important files backed up. Search Start for Command Prompt, choose Run as administrator, and approve the prompt. The examples below use Command Prompt. /Online means the currently running Windows installation, not simply that the PC is connected to the internet.

2. Check component-store health
DISM /Online /Cleanup-Image /CheckHealth/CheckHealth reports whether corruption has already been flagged; it does not perform a full scan. For a deeper check, use:
DISM /Online /Cleanup-Image /ScanHealth
3. Repair using the default source
DISM /Online /Cleanup-Image /RestoreHealthDISM can use Windows Update for repair files when permitted by your configuration. It downloads replacement components, not “corrupted files.” Let the command finish and read the final status; progress may appear unchanged for a while.

After it completes successfully, run:
sfc /scannowRecord the result and restart if requested, then retest the original problem. For help interpreting the messages, see SFC and DISM result practice.
4. Use a suitable ISO source if needed
If DISM reports that source files could not be found, mount official Windows 11 installation media compatible with the installed version, architecture, language, and edition. A source that is too old or lacks required components may fail. Check the mounted drive letter and whether it contains sourcesinstall.wim or sourcesinstall.esd.

For a WIM file on drive E:, inspect its indexes first:
DISM /Get-WimInfo /WimFile:E:sourcesinstall.wimChoose the index matching your installed edition. The following example uses index 1 only as a placeholder; replace it and the drive letter with the correct values:
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:E:sourcesinstall.wim:1 /LimitAccessFor an ESD source, use the corresponding install.esd path and esd: prefix, again selecting the correct index.

/LimitAccess prevents fallback to Windows Update. Omit it if you want that fallback available. The screenshots show an older walkthrough; use the correctly formed commands above rather than copying an incomplete path from an image.
If repair fails
Record the error code and final message. Check source compatibility and review C:WindowsLogsDISMdism.log before repeating commands. Use the Windows error-code lookup for context. If corruption returns or storage errors appear, investigate the underlying cause rather than repeatedly running repair commands.
Reader Comments 0
Sign in with email or Google to join the discussion.