How Repair Dism /Online /Cleanup-Image /RestoreHealth

The DISM (Deployment Image Servicing and Management) command tool has three options to repair a Windows 10 image, including CheckHealth, ScanHealth, and RestoreHealth. Depending on the severity of the issue, you are able to use special settings with the RestoreHealth option to repair the locally available image using different source files.

DISM.exe /Restorehealth

Restorehealth is the last switch in DISM /Online /Cleanup-Image /Restorehealth command. The RestoreHealth scans the Operating System for damage or corrupt files. If DISM finds corrupt files, it tries to repair them automatically. For note: Once you run the DISM.exe /Online /Cleanup-Image /Restorehealth command, it may come to be stuck. Please do not panic. Usually, it will complete.

What Does “DISM.Exe /Online /Cleanup-Image /Restorehealth Command Do?

With the three switches in the command explained, we are able to summarize what the command does. Once you run DISM.exe /Online /Cleanup-Image /Restorehealth command, it does the following:

  • The Online switch order DISM.exe to target the running Operating System instead of an offline Windows image file or virtual hard disk.
  • The Cleanup-Image does cleanup and recovery operations on the running Operating System.
  • Finally, the Restorehealth scans the running Operating System for corrupt files and tries to repair them.

The following is the result of the command: Dism /Online /Cleanup-Image /RestoreHealth

Repair Issues With DISM By Using Restorehealth Option

If there are errors with the system image of Windows 10, you are able to use DISM with the RestoreHealth option to run an advanced scan and repair the issues automatically.

To repair Windows 10 image issues with DISM, do these steps below:

  • At the first step, you have to open Start.
  • Please search for Command Prompt, right-click the top result, and then choose the Run as administrator option.
  • Now, you have to type the command below to repair the Windows 10 image and press Enter:

DISM /Online /Cleanup-Image /RestoreHealth

DISM Online Cleanup-Image RestoreHealth1

For note: If the command seems stuck at 20 or 30 percent, it is normal behavior. After a few minutes, the process is going to complete successfully. Once you complete all steps, the (DISM) Deployment Image Servicing and Management tool will be able to connect to Windows Update to download and replace damaged files.

Repair DISM.exe /Online /Cleanup-Image /Restorehealth Error 87

Apparently, there are some reasons why you may encounter error 87 when you run the DISM.exe /Online /Cleanup-Image /Restorehealth command. Here are some solutions to repair them.

Solution 1

From our research, the top on the list is when you run the command without adding the required spaces in the switches. Use the DISM command without spaces.

Solution 2

You are able to run the command with spaces.

Solution 3

Another reason for Restorehealth error 87 could be pending updates. For this case, you need to check and install any pending updates.

To check and install any pending update, you have to follow these steps below:

  • Please right-click Windows logo on the left of your task bar [1].
  • After that, click System [2].
  • Once the Settings loads, simply type updates in the search bar [1].
  • Next, choose Check for updates.
  • Lastly, you are able to check the part labelled [3] for any pending updates. If any just click install.

Repair Issues With DISM Using Checkhealth Option

The CheckHealth option in DISM allows you determine quickly if there are any corruptions inside the local image.

To check the Windows 10 image for issues with DISM, you have to follow these steps:

  • At the first step, open Start.
  • Please search for Command Prompt, right-click the top result, and then choose the Run as administrator option.
  • Then, type the following command to perform a quick check and press Enter:

DISM /Online /Cleanup-Image /CheckHealth

DISM Online Cleanup-Image CheckHealth

After you complete the steps, the tool is going to run and verify any data corruption which requires repairing.

Repair Issues with DISM using ScanHealth option

The ScanHealth option does an advanced scan to identify if the image has any problems.

To do an advanced scan with DISM, please follow these steps:

  • Firstly, open Start.
  • Then, search for Command Prompt, right-click the top result, and choose the Run as administrator option.
  • After that, you have to type the command below to do an advanced DISM scan and press Enter:

DISM /Online /Cleanup-Image /ScanHealth

DISM Online Cleanup-Image ScanHealth

After you complete the steps above, the advanced scan will take a few minutes to scan and identify if the image needs repairing.

Fix Issues With DISM By Using WIM Image

Although DISM (Deployment Image Servicing and Management) is normally trusted, but if there are the issues getting the replacement files or you are not connected to the internet, then an alternative source to fix the files by using another image with the Source option will be needed. In this case, you will need an install.wim or install.esd file from another device, installation media, or ISO file. If you need to specify a different source, we suggest you to use the Media Creation Tool to download an ISO image of Windows 10. To download the ISO file of Windows 10, follow these steps:

  • Firstly, open Microsoft support website.
  • Then, click the Download tool now button.
  • Please double-click the MediaCreationToolxxxx.exe file to launch the setup.
  • Do not forget to click the Accept button to agree to the terms.
  • Choose the Create installation media (ISO file) for another PC option. Just Click the Next button.

Create installation media (ISO file) for another PC option. Just Click the Next button

  • Click the Next button again.
  • After that, choose the ISO file option.

choose the ISO file option

  • Click the Next button.
  • Next, you have to choose the destination for the Windows 10 ISO file.
  • Click the Save button.
  • Also, you need to click the link to open the file location.

click the link to open the file location

  • Click the Finish button.
  • Please double-click the Windows.iso file to mount the image.
  • Under the This PC section, you have to confirm the drive letter for the mounted image.
  • After you complete the steps, you are able to proceed with the tool by using the Source option to solve the local image of Windows 10.

Leave a Reply

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