How to Run DISM to Repair a Windows 11 System Image

On Windows 11, open Terminal as an administrator and run DISM /Online /Cleanup-Image /RestoreHealth to check and repair the running Windows component store. If you want a diagnosis before attempting a repair, use /CheckHealth for an existing corruption flag or /ScanHealth for a fuller scan.

Choose the DISM check you actually need

  • CheckHealth reports whether the image has already been flagged as corrupted. A quick clean result is not a new full scan.
  • ScanHealth checks the component store for corruption and reports what it finds without repairing it.
  • RestoreHealth scans for corruption and attempts to repair it. You do not need to run both earlier checks first if repair is already your goal.

Run the command against the live Windows installation

  1. Save your work, right-click Start, select Terminal (Admin) and approve the prompt. These commands work from Command Prompt or PowerShell in that window. They target Windows while it is running; a recovery-environment prompt requires a different offline procedure.
  2. For a quick status check, enter DISM /Online /Cleanup-Image /CheckHealth. If you need to scan rather than just read the status, enter DISM /Online /Cleanup-Image /ScanHealth. Allow the scan to finish.
  3. To repair, enter DISM /Online /Cleanup-Image /RestoreHealth. Keep the computer connected to power. A percentage can stay still while DISM is working. Wait for the final message and record any error code.
  4. If the operation succeeds and the original issue involves damaged Windows files, follow with sfc /scannow in the same administrator terminal. After the check completes, restart if repairs were made and repeat the failing action.

If DISM cannot find repair files

/Online selects the currently running Windows image; it does not guarantee internet access. Windows Update is the normal repair source. A network issue, organization policy or incompatible repair source can prevent DISM from finding the required files. Do not add /LimitAccess as a generic fix: it prevents DISM from contacting Windows Update. A repair like this is also worth trying when a built-in console fails to start, for example if Event Viewer will not open on Windows 11.

If you must supply a source, use a compatible Windows image that includes the required components and updates. A random installation-media drive letter or WIM index is not a reliable substitute. For a managed PC, ask IT for its approved source. Microsoft’s DISM repair examples show how to use a mounted source. Its repair-source requirements explain why version and update level matter.

If DISM says the image cannot be repaired, preserve your files and evaluate Windows recovery options. For Windows 10, the Windows 10 command-prompt repair walkthrough covers that version’s start and result paths.