How to Run DISM RestoreHealth to Repair Windows

Windows DISM RestoreHealth repair illustration

DISM, short for Deployment Image Servicing and Management, can repair the Windows component store. The RestoreHealth option is often used when sfc /scannow finds problems it cannot fix.

This applies to Windows 10 and Windows 11.

Does This Affect You?

Run DISM when Windows system files are corrupted, updates fail repeatedly, or SFC reports unresolved corruption. DISM repairs the source Windows image, then SFC can use that repaired source to fix files.

Run DISM RestoreHealth Online

  1. Open Command Prompt as administrator.
  2. Run the command below.
  3. Expect the percentage to pause at times, especially around 20 or 40 percent. That can be normal.
  4. When it completes successfully, run sfc /scannow.
  5. Restart after both commands finish.
DISM /Online /Cleanup-Image /RestoreHealth

Use Installation Media as the Source

  1. Create or mount Windows installation media matching your Windows version.
  2. Note the drive letter, such as D:.
  3. Look for sourcesinstall.wim or sourcesinstall.esd.
  4. Run DISM with the source path below, replacing the drive letter and file type as needed.
  5. If DISM asks for an index, add :1 after the WIM or ESD path and try again.
  6. Run SFC afterward, then restart.
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:sourcesinstall.wim /LimitAccess

DISM Troubleshooting

Read the Log

DISM writes details to C:WindowsLogsDISMdism.log. Open it in Notepad and check the newest entries near the bottom.

Error 0x800f081f

This usually means DISM cannot find repair source files. Use installation media and confirm the source path is correct.

Errors 0x800f0906 or 0x800f0950

These often point to Windows Update connection or source problems. Check Windows Update health, then retry DISM.

When DISM Cannot Fix It

If DISM fails even with matching installation media, an in-place upgrade repair using Microsoft’s setup tool is usually more reliable than chasing one file at a time.

Sources

  • Microsoft Learn: Repair a Windows image
  • Microsoft Support: Fix Windows Update errors
  • Microsoft Learn: DISM command-line options
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart