Skip to content

Repairing a Windows Image with DISM & SFC

Notice: This feature does not repair 100% of damaged images, see How to Repair Windows Using Images if necessary.

Press WIN + X and select "Windows PowerShell (Admin)" or "Terminal (Admin)".

To check if an image is repairable

Scan the image to check for corruption. This operation will take several minutes.

PowerShell
DISM.exe /Online /Cleanup-Image /ScanHealth

Check the image to see whether any corruption has been detected.

PowerShell
DISM.exe /Online /Cleanup-Image /CheckHealth

About Image Check When you use the /CheckHealth sfc argument, the DISM tool will report whether the image is healthy, repairable, or non-repairable.

If the image is non-repairable, After trying to use the Media Creation Tool Fixes and Upgrades. Upon failure, a reinstallation should be performed using a system image provided by Microsoft.

If the image is repairable, you can use the /RestoreHealth argument to repair the image. (Using some of your own sources is not covered here, see Microsoft Learn for more information.)

To repair an image, this operation will take several minutes.

PowerShell
DISM.exe /Online /Cleanup-Image /RestoreHealth

Scanning and repairing system files with SFC, this operation will take several minutes.

PowerShell
SFC /SCANNOW

After you finish and restart your computer, some of the problems caused by corrupted system files will be fixed. If necessary, you can perform the Windows Update again.

Other Errors

As you can see in the picture below, if you encountered a prompt while performing the operation, and you cannot solve the problem by yourself, you need to refer to How to Repair Windows Using Images to repair your system.

Repairing Windows Using Images

Windows 10 | Windows 11 | Windows Insider

About Windows 10 ISO Download

Notice

Windows 10 no longer offers a separate ISO download on the PC web page, so if you need it, press F12 on the download page, then Ctrl + Shift + M, then F5 to refresh the page, and finally F12 to see the ISO download.

Either one of the following ways is fine.

Media Creation Tool Fixes and Upgrades

Download Media Creation Tool: Windows 10 | Windows 11

Notice

Media Creation Tool for Windows 11 only creates ISO, while Windows 10 can upgrade / repair the system directly using Media Creation Tool.

For Windows 11 the following options will be available
  • a.

  • b.

  • c.

See Image Repair when you're done.


Image Repair

Double-click on the .ISO image file to have File Explorer automatically mount the virtual image, and then use the Setup application in the root directory of the image to repair the system.(Upgrade, time required ≥30min)

This documentation is released under CC BY-NC-SA 4.0 License