Windows 10 DISM repair toolSource: Windows Central

On Windows 10, Deployment Image Servicing and Management (DISM) is a tool designed for network administrators to prepare, modify, and repair system images, including the Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). However, anyone can also use the tool to fix common problems with the hidden recovery image on your computer.

Usually, when your device is experiencing performance issues, doesn't start correctly, or you're troubleshooting errors, you can use the System File Checker tool to scan, detect, and replace corrupted or missing system files using the locally available recovery image.

However, if the replacement files inside the Windows 10 image are damaged in any way, the SFC tool won't work. In this particular situation, you can use the DISM tool to scan and repair the "install.wim" image, which you can then use with SFC to repair your installation.

Best online learning tools for kids: ABCmouse, Reading IQ, & more

In this Windows 10 guide, we'll walk you through the steps to use the DISM and SFC tools with Command Prompt to bring your device back to a healthy working state.

Warning: Although these are non-destructive commands, you'll be making system changes. It's recommended to create a temporary full backup before proceeding.

How to run DISM to repair image of Windows 10

Using the Deployment Image Servicing and Management command tool, you have three main options to repair a Windows 10 image, including "CheckHealth," "ScanHealth," and "RestoreHealth," and you want to run them in that hierarchy order. Also, depending on the complexity of the issue, there are additional settings that you can use with the "RestoreHealth" option to fix an image using different sources.

Checking issues with DISM using CheckHealth option

You can use the CheckHealth option with DISM to quickly determine if there are any corruptions inside the local image, but the option won't perform any repairs.

To check for issues within the image with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform a quick health check and press Enter:

    DISM /Online /Cleanup-Image /CheckHealth

    Dism Checkhealth option on Windows 10Source: Windows Central

Once you complete the steps, the command will run and verify if there is any data corruption that needs fixing.

Checking issues with DISM using ScanHealth option

You can run DISM with the ScanHealth option instead of "CheckHealth" to perform a more advanced scan to determine if the Windows 10 image has any problems.

To perform an advanced scan with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform an advanced DISM scan and press Enter:

    DISM /Online /Cleanup-Image /ScanHealth

    Dism Scanhealth option on Windows 10Source: Windows Central

After you complete the steps, the advanced scan will take several minutes to determine if the local image needs repairing.

Repairing issues with DISM using RestoreHealth option

If there are issues, then you can use DISM with the RestoreHealth option, which will run an advanced scan and repair any problems automatically.

To repair Windows 10 image problems with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the Windows 10 image and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth

    Dism Restorehealth option on Windows 10Source: Windows Central

    Quick note: While the command is running, it's expected to see the process stuck at 20 or 40 percent. After a few minutes, the process will complete successfully.

Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the Windows Update servers to download and replace any damaged files in the local image for Windows 10 as necessary.

Repairing issues with DISM using WIM image

The DISM tool is unlikely to run into issues, but in the rare case that Windows Update is causing problems getting the replacement files or you don't have an internet connection, you'll need to use an alternative source to repair the files using another image with the Source option.

Before you can specify a different source, you'll need an install.wim or install.esd file from another computer, bootable installation media, or ISO file. Also, it's important that the source of the known good files matches the same version, edition, and language of Windows 10 that you're using on your computer.

Download Windows 10 ISO file

The recommended method for accessing a good image is using the Media Creation Tool to download an ISO image of Windows 10.

To download the ISO file of Windows 10, use these steps:

  1. Open this Microsoft support website.
  2. Click the Download tool now button.
  3. Double-click the MediaCreationToolxxxx.exe file to launch the app.
  4. Click the Accept button to agree to the terms.
  5. Select the Create installation media (USB flash drive, DVD, or ISO file) for another PC option.

    Media Creation Tool create image optionSource: Windows Central

  6. Click the Next button.
  7. Click the Next button again.

    Media Creation Tool Windows 10 settings downloadSource: Windows Central

  8. Select the ISO file option.

    Media Creation Tool ISO optionSource: Windows Central

  9. Click the Next button.
  10. Select the destination for the ISO file.
  11. Click the Save button.

    Save Windows 10 ISO downloadSource: Windows Central

  12. Click the link to open the file location with File Explorer.

    Media Creation Tool ISO completionSource: Windows Central

  13. Click the Finish button.
  14. Double-click the Windows.iso file to mount the image.
  15. Under the This PC section, in the left pane, confirm the drive letter for the mounted image.

    File Explorer ISO mounted drive letterSource: Windows Central

After you complete the steps, you can use DISM with the "Source" option to repair the local image of Windows 10.

Fix Windows 10 recovery image

To run DISM specifying a different source (install.wim) image, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the Windows 10 image and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim

    Dism Restorehealth with source option on Windows 10Source: Windows Central

    In the command, make sure to replace "D" for the letter that corresponds to your ISO mount point.

  4. (Optional) Type the following command to limit the use of Windows Update and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:D\Sources\install.wim /LimitAccess

  5. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\Sources\install.wim:1 /LimitAccess

    In the command, make sure to change "D:\Sources," for the path that corresponds to the location of the install.wim file.

Once you complete the steps, the command will scan and repair any issues using the install.wim image that you specified.

Repairing issues with DISM using ESD image

Alternatively, if you have an encrypted install.esd image from a recent upgrade, you can use it to repair the damaged files.

To run DISM specifying a different source (install.esd) image, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image with an external source and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\install.esd

    Dism Restorehealth option using Install.esdSource: Windows Central

    In the command, make sure to change "C:\$Windows.~BT\Sources," for the path that corresponds to the location of the install.esd file (if applicable).

  4. (Optional) Type the following command to limit the use of Windows Update and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\install.esd /LimitAccess

  5. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\install.esd:1 /LimitAccess

  6. (Optional) Type the following command to use an install.esd file located in another drive and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.esd

    In the command, make sure to change "D:\Sources," for the path that corresponds to the location of the install.esd file.

After you complete the steps, the Deployment Image Servicing and Management command tool will run and repair the damaged files using the files included in the install.esd image. Once the process completes, the log files will be saved on %windir%/Logs/CBS/CBS.log and %windir%\Logs\DISM\dism.log capturing any issues found and those that were fixed.

How to run SFC to repair problems on Windows 10

The instructions outlined above to use DISM will repair any issues with the local hidden image, but they won't fix any problems with the actual installation of Windows 10. However, now that you have a healthy image, you can use it with the System File Checker to repair common issues preventing your device from running correctly.

To use the SFC command tool to repair the Windows 10 installation, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command and press Enter:

    SFC /scannow

    Windows 10 sfc scannow commandSource: Windows Central

    Quick tip: If errors are found, you may want to run the command about three times to make sure that everything is fixed correctly.

Once you complete the steps, the System File Checker will scan your device and repair any system files using the good files from the local image to restore the health of Windows 10.

Although the above command should be enough to fix an installation, there are a lot of SFC commands that you can use to repair Windows 10.

We're focusing this guide on Windows 10, but you can also use DISM to service images on Windows 8.1 and Windows 7, but the options available will vary depending on the version that you're using.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

We may earn a commission for purchases using our links. Learn more.