Deployment Image Servicing and Management is an inbuilt tool that helps users fix corrupted files and the operating system image. However, some users have claimed that the Restore health command used with DISM gets stuck forever or, stuck on 62.3%.
If this is the case with you, struggling when fixing system-related issues is bound to happen. Luckily, you don’t have to worry as in this post, we have explained the best ways to fix DISM /online /cleanup-image /restorehealth stuck on Windows.
When Should You Run The DISM /online /cleanup-image /restorehealth Command
This command is a helpful way to repair and maintain the health of your Windows operating system, especially when you’re experiencing problems with system stability, performance, or updates. Here are the key reasons you might need to run this command.
- The system becomes unstable, or you experience crashes, freezes, or other erratic behavior.
- Windows Updates fail to install, or you encounter error codes (e.g., 0x800f081f, 0x8007000d).
- Windows features or applications, such as the Windows Store, settings panels, or other built-in apps, fail to work.
- Running SFC/scannow results in an error like “Windows Resource Protection found corrupt files but was unable to fix some of them.”
- Windows performance slows down, apps load slowly, or there is lag.
- If you want to ensure that your Windows installation is in optimal condition.
- Some applications or services (such as Cortana, Microsoft Edge, or others) crash or fail to start properly.
Prerequisites Before Troubleshooting
Here is a list of small troubleshooting steps and checkpoints before carrying out any advanced troubleshooting steps.
- Reboot your PC and check again.
- Ensure your PC is connected to a stable internet connection when DISM tries to download a system image online.
- Use the following DISM commands before the Restore Health command –
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
Fix The DISM /online /cleanup-image /restorehealth Is Stuck
Method 1 – Run Command Prompt As Administrator
You need the Command Prompt to run the DISM tool. Experts recommend running the command prompt as an administrator and executing the DISM commands. Here is what you need to do if DISM is stuck.
1. Restart your PC.
2. After reboot, press Win + R to open the Run dialog box and type “cmd.”
3. Press Ctrl + Shift + Enter to open the Command Prompt tool in Admin mode.
4. Click on the Yes button when the UAC prompt appears.
5. Copy and paste the following command followed by the Enter key.
DISM /Online /Cleanup-Image /RestoreHealth
If the DISM command still gets stuck, you can follow the next step.
Method 2: Run A Memory Test
The Windows Memory Diagnostic Utility is a useful tool Microsoft provides to check the memory installed on the PC. This tool takes time to complete the scan and requires a reboot. Here are the steps to use this tool.
1. Press the Win + S to open the Search box and type “Windows Memory Diagnostic.”
2. Click on the result with the same name.
3. A dialog box will appear on your screen. Click on the “Restart now and check for problems” option.
4. The PC will reboot to carry out a few tests and determine if your memory needs replacing.
Method 3 – Run Check Disk Tool
Another reason for the DISM restore health to get stuck is the faulty hard disk. There is no better tool than the CHKDSK for checking your hard disk condition. Here are the steps to follow:
1. Press the Windows + R keys to launch the Run dialog.
2.Type “cmd” and press Ctrl + Shift + Enter to open Command Prompt in elevated mode.
3. If the UAC prompt box appears, click Yes.
4. Copy and paste the following command:
chkdsk /f /r
5. Reboot your PC.
Method 4 – Run System File Checker
The DISM tool is related to the SFC tool. Both help to fix corrupted files on Windows PCs. If the DISM command gets stuck, you can try running the SFC tool before DISM.
1. Press Windows + R to open the RUN box.
2. Type “cmd” and press Ctrl + Shift + Enter to open the Command prompt in admin mode.
3. Copy and paste the following command followed by the Enter key.
sfc /scannow
4. The tool will scan your system files for integrity violations. This may take some time, so be patient.
5. Once the scan is complete, you’ll see a message indicating whether any issues were found and if they were repaired.
6. Restart your PC.
Method 5 – Update Windows
If nothing else works, then it is probably time to update your Windows OS. A complete update requires time and many steps. Here is what you need to do.
1. Press Windows + I to launch the Settings window.
2. Click on Windows Updates in the left panel.
3. Next, click the Check for Updates button in the top right corner.
4. The Windows Updates Service will automatically download and install the latest updates on your PC.
5. Next, click on Advanced Options on the same page.
6. Then, click on Optional Updates (Features, Drivers, etc.).
7. Look for updates related to Windows features and check the box before it.
8. Click on the Download & Install button and wait for the process to complete.
9. Restart your computer.
Also Read – 9+ Ways To Fix Windows Stuck on “Checking for Updates”
Editor’s Tip: Use Advanced Disk Recovery To Recover Your Files
If the DISM Restore Health command still has issues while running, you might have to replace the hard disk or reinstall Windows. It is a good idea to take a backup of all the files on your PC while it is running. But if the hard disk gets corrupted and does not load the OS, you can also recover the files by connecting your damaged HDD to a different PC and use Advanced Disk Recovery.
1.Download and install Advanced Disk Recovery on your PC using the button below.
2. Launch the software and click on the Removable option.
3. Select your Hard Disk.
4. Click on the Start Scan Now button.
5. On the next screen, click on Deep Scan and then click on the Scan Now button.
6. A list of items that can be recovered will be available on the screen within the app’s interface.
7. Select the items you wish to recover and click on the Recover button.
8. Specify the drive on your PC where you wish to recover these files from the damaged hard disk.
9. Wait for the recovery process to complete.
Note : You must always store the recovered files on a different drive to avoid overwriting of files.
[Fixed]
Running Dism /online /cleanup-image /restorehealth scans the operating system for corruption or missing files in the system image (such as system files, Windows updates, and components) and attempts to repair them using files from a local source or the Windows Update servers. We hope that the methods mentioned above have fixed the issue for you. We would love to hear about your issue in the comments section below.
Read Also: How To Fix Backup Failure on Windows 11/10