How to Run the DISM.exe /Online /Cleanup-image /Restorehealth Tool

Most problems with Windows are related to damaged or corrupted system files. When these critical system files become inaccessible or unreadable, Windows will not be able to function properly and the processes will lead to various errors.

Fortunately, the Windows operating system is equipped with several built-in tools to help scan, fix, restore, and troubleshoot common errors. One of these useful tools is the DISM tool. DISM stands for Deployment Image Servicing and Management and this tool can help Windows users troubleshoot a wide range of problems, from performance issues to boot up errors.

You’ve probably read about this tool from various tutorial websites, but do you know what it actually does? Do you know what commands to run and what these commands mean? This guide will discuss in detail what the DISM tool is, what common errors you can fix with it, and what other uses this tool is good for.

What is the DISM Tool?

Deployment Image Servicing and Management (DISM) is a Windows 10 tool designed to help network administrators prepare, modify, restore, and repair system images, including the Windows Setup, Windows Recovery Environment, and Windows PE (WinPE). The tool can also be used to fix common issues with the hidden recovery image on your PC.

It is a Windows command line utility that is used to prepare and service images for the operating system. DISM.exe helps deploy the necessary images from the Deployment Imaging Servicing and Management utility, and does not cause any threat to your PC.

When your device encounters performance issues, does not boot up correctly, or when you are troubleshooting errors, the System File Checker tool should be enough to scan, repair, and replace damaged or missing system files by using the recovery image that is locally available.

But, if the replacement copies inside the Windows 10 recovery image are also corrupted in any way, the SFC tool will not work. In this case, you need to use the DISM tool to scan and repair the install.wim image where the replacement files are saved, then use SFC to repair your installation. In effect, the DISM tool fixes problems that the SFC tool cannot handle.

DISM uses commands to bring your computer back to its healthy working state. Although these commands are non-destructive, keep in mind that you’ll be making system changes on your device, so you need to create a backup before proceeding.

How to Use DISM to Repair the Windows 10 Image

The Deployment Image Servicing and Management (DISM) command tool can be used in three ways:

  • CheckHealth
  • ScanHealth
  • RestoreHealth

You need to run these three components in that hierarchy order for DISM to work. Aside from these three, you might also need to run additional settings for the RestoreHealth, depending on the complexity of the issue.

How to Use the CheckHealth Option

You can use the DISM’s CheckHealth option to quickly find out if there are any damages or corruptions inside the local image, but the tool won’t perform any repairs.

To check for problems within the recovery image using DISM, use these instructions:

  1. Click Start.
  2. Search for Command Prompt using the search bar beside the Start button.
  3. Right-click on the top result, then select Run as administrator.
  4. Type in the following command in the command prompt windows to do a quick health check: DISM /Online /Cleanup-Image /CheckHealth
  5. Press Enter.

Once you have completed the steps, the command will be executed and it will verify if there is any data corruption that needs to be fixed.

How to Use the ScanHealth Option

If you need to perform a more advanced scan, you can run DISM with the ScanHealth option instead of CheckHealth. This will determine if the Windows 10 image has any problems.

To do an advanced scan using DISM, follow these steps:

  1. Click Start.
  2. Search for Command Prompt using the search bar beside the Start button.
  3. Right-click on the top result, then select Run as administrator.
  4. Type in the following command into the command prompt windows to do an advanced scan: DISM /Online /Cleanup-Image /ScanHealth
  5. Press Enter.

Once you have completed the steps, the advanced scan will begin. It will take several minutes for the advanced scan to determine if the local image needs repairing.

How to Use the RestoreHealth Option

If issues have been detected during the scan, then you can use DISM with the RestoreHealth option to repair these problems automatically.

To repair Windows 10 image issue with DISM, follow these steps:

  1. Click Start.
  2. Search for Command Prompt using the search bar beside the Start button.
  3. Right-click on the top result, then select Run as administrator.
  4. Type in the following command into the command prompt windows to repair issues: DISM /Online /Cleanup-Image /RestoreHealth
  5. Press Enter.

It is normal to see the process getting stuck a few times, but don’t worry. Just wait for a few minutes and the process will be completed successfully. Once the steps have been completed, the Deployment Image Servicing and Management (DISM) tool will automatically connect to the Windows Update servers to download the replacements for any damaged files in the Windows 10 local image as necessary.

Fixing Issues with DISM Using WIM image

The DISM tool is easy to use and should not run into problems in most cases. But if the Windows Update is causing issues when downloading the replacement files or you don’t have a stable internet connection, you’ll need another source to repair the files. You can use another image instead of the Source option.

But before you can use a different source, you first need an install.wim or install.esd file from another working computer. You can also get it from a bootable installation media or an ISO file. Take note that the alternative source of the image should match the same version, edition, and language of Windows 10 that is installed on your computer.

How to Download Windows 10 ISO file

The best method to get a good image is to download an ISO image of Windows 10 using the Media Creation Tool. To do this, follow the steps below:

  1. Go to this Microsoft support website.
  2. Click on the Download tool now button.
  3. One the file has been downloaded, double-click on it to launch the app.
  4. Click Accept to agree to the terms.
  5. Choose Create installation media (USB flash drive, DVD, or ISO file) for another PC.
  6. Click the Next button twice.
  7. Choose the ISO file option.
  8. Click Next, then select the destination for the ISO file.
  9. Click Save.
  10. Click the link to open the file folder with File Explorer.
  11. Click Finish.
  12. Mount the Windows.iso file by double-clicking on it.
  13. In the left menu, under the This PC section, confirm the drive letter for the mounted image. You will need this information later on.

Repair Windows 10 Recovery Image (install.wim)

To run the DISM tool by specifying a different source (install.wim) image, follow these steps:

  1. Click Start.
  2. Search for Command Prompt using the search bar beside the Start button.
  3. Right-click on the top result, then select Run as administrator.
  4. Type in the following command into the command prompt window to repair the Windows 10 image: DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim
  5. Make sure to replace the D drive for the letter that corresponds to your ISO file.
  6. Press Enter.
  7. Type in this command to limit the use of Windows Update, then press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:D\Sources\install.wim /LimitAccess
  8. If the above command did not work, use this instead: DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\Sources\install.wim:1 /LimitAccess
  9. Don’t forget to change D:\Sources for the address that corresponds to the location of your install.wim file.

Once the steps have been completed, the DISM tool will scan and repair any file system issues using the install.wim image that you specified.

Repair Problems with DISM using ESD image

If you don’t have an install.wim image but you have an encrypted install.esd image from a previous upgrade instead, you can also use it to repair the damaged files.

To run the DISM tool by specifying a different source (install.esd) image, follow these steps:

  1. Click Start.
  2. Search for Command Prompt using the search bar beside the Start button.
  3. Right-click on the top result, then select Run as administrator.
  4. Type in the following command into the command prompt window to repair the image using an external source: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\install.esd
  5. Make sure to replace the C:\$Windows.~BT\Sources for the path that corresponds to the location of the install.esd file.
  6. Type in 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
  7. If the above command did not work, use this instead: DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\install.esd:1 /LimitAccess
  8. Type in the following command to use an install.esd file saved in another drive, then press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.esd
  9. Make sure to change D:\Sources for the path where the install.esd file is located.

After you have completed the steps, the Deployment Image Servicing and Management (DISM) command tool will scan and repair the damaged files using the files included in the install.esd image.

Summary

The DISM tool is very useful for fixing common system file errors on Windows 10. All you need to do is open Command Prompt and type in the appropriate command depending on what you want to do. If you’re not familiar with the commands, you can use the guide above to help you out.

Here’s a tip: Cleaning up your system regularly with a PC cleaner app and running your anti-malware software regularly can help prevent system file errors from happening and will keep your computer in top working condition.

Click here to Download

Outbyte If you’re running into errors and your system is suspiciously slow, your computer needs some maintenance work. Download Outbyte PC Repair for Windows, Outbyte Antivirus for Windows, or Outbyte MacRepair for macOS to resolve common computer performance issues. Fix computer troubles by downloading the compatible tool for your device.
See more information about Outbyte and uninstall instructions. Please review EULA and Privacy Policy.

2 thoughts on “How to Run the DISM.exe /Online /Cleanup-image /Restorehealth Tool

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty + 4 =