DISM Online Cleanup Image RestoreHealth Stuck: Fixes
In this article
If the DISM command Dism /Online /Cleanup-Image /RestoreHealth appears stuck, it is usually not frozen—it is waiting on Windows Update or a slow repair source, and most cases resolve within 15–30 minutes. When it truly hangs for hours, the fix is to interrupt it safely, switch to a local repair source, or run the command offline from the Windows Recovery Environment.
What DISM RestoreHealth Actually Does
DISM (Deployment Imaging Service and Management Tool) is a built-in Windows utility. The /RestoreHealth option scans the Windows component store—the hidden folder that holds system files, drivers, and updates—and repairs corruption by replacing damaged files with good copies. It is commonly run after sfc /scannow finds issues it cannot fix, or before attempting a Windows feature update.
Unlike SFC, which checks protected system files, DISM works at a lower level by repairing the component store itself. If the store is healthy, SFC can then use it as a source. The command is often written as:
Dism /Online /Cleanup-Image /RestoreHealth
It does not produce progress bars for most of its run. It shows a percentage that may sit at 20%, 40%, or 62.3% for long periods, then jump. This is normal behavior, and many users mistake it for a hang.
Why It Gets Stuck: Common Causes
The most frequent reason DISM appears stuck is that it is downloading files from Windows Update, and that download is slow, blocked, or stuck itself. Other causes include:
- Windows Update service issues: If the update service is disabled or has a corrupted cache, DISM cannot fetch repair files.
- Network problems: A flaky connection or a proxy/firewall that blocks Microsoft servers can stall the download indefinitely.
- Disk I/O contention: The command reads and writes large amounts of data; an old or nearly full hard drive slows it dramatically.
- Antivirus interference: Some security tools lock system files or scan every operation, causing DISM to wait.
- Corrupted CBS log: The log that DISM writes to may itself be damaged, causing the process to loop.
How to Tell If It Is Really Stuck
Before interrupting, check whether DISM is still doing work. Open Task Manager (Ctrl+Shift+Esc) and look at the Processes tab. If you see high CPU or disk activity from Dism or TrustedInstaller, it is working. Also check the log file in real time:
C:\Windows\Logs\DISM\dism.log
Open it in Notepad and press End. If new lines appear every few minutes, the command is progressing. If the log has not changed for 30+ minutes and the process is idle, it is likely hung.
How to Fix a Stuck DISM Command
If you have confirmed it is stuck, follow these steps in order. Each step is safe and does not require a reinstall.
- Interrupt it safely: Press Ctrl+C in the Command Prompt window. This stops the process cleanly. If that fails, close the window and restart the computer.
- Restart Windows Update services: Open an elevated Command Prompt and run:
net stop wuauservnet start wuauserv
Then try DISM again. - Use a local source instead of Windows Update: If you have a Windows installation ISO or USB, mount it (double-click the ISO) and note the drive letter, e.g.,
E:. Then run:Dism /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim /LimitAccess
This forces DISM to use the local files and not contact Windows Update. - Run DISM offline from the Recovery Environment: Boot into Advanced Startup (Shift+Restart), select Troubleshoot > Advanced Options > Command Prompt. Then run the same command but with
/Image:C:instead of/Online:Dism /Image:C:\ /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim
This avoids the running system entirely and often succeeds when online mode fails. - Clear the DISM log and retry: Delete
C:\Windows\Logs\DISM\dism.log(it will be recreated) and run the command again. This helps if the log is corrupted.
How Long Should DISM Take?
There is no fixed time, but typical runs on a healthy system take 10–30 minutes. On an older mechanical drive, it can take 1–2 hours. If the command has been running for over 3 hours with no log activity, it is almost certainly hung. The percentage shown is not linear—it may stay at 62.3% for a long time, then jump to 100%.
Alternatives and Related Commands
If DISM repeatedly fails, try these in order:
- Run SFC again: After a successful DISM, run
sfc /scannowto fix any remaining file corruption. - Use the
/StartComponentCleanupoption: This removes old versions of updated components and can free up space, but it does not repair corruption. - Perform an in-place upgrade repair: Download the Windows installation assistant and run it from your desktop. This reinstalls Windows while keeping your files and apps, and it repairs the component store without a full reset.
- System Restore: If you have a restore point from before the corruption, roll back to it. This is faster than DISM in some cases.
Safety and Precautions
Running DISM is generally safe, but follow these rules:
- Always run Command Prompt as Administrator. Without elevation, DISM will not work.
- Do not force-close the Command Prompt during the scan unless you have confirmed a hang. Interrupting mid-write can leave the component store in a partial state, though DISM is designed to recover.
- Ensure you have at least 10–15 GB of free disk space. DISM creates temporary files.
- If using a local source, make sure the
install.wimorinstall.esdmatches your Windows version (e.g., Windows 11 23H2). Mismatched sources can cause errors. - Back up important files before any system repair, just in case.
Frequently Asked Questions
Is it safe to press Ctrl+C to stop DISM?
Yes, it is safe. DISM is designed to handle interruption. It will either roll back changes or leave the component store in a state that can be repaired on the next run. After stopping, you can restart the command or try a different source.
Why does DISM always stop at 62.3%?
62.3% is a common point where DISM begins the actual repair phase after downloading or locating source files. It may spend a long time there because it is processing a large number of corrupted files. If the log is still updating, wait longer.
Can I run DISM while using my computer?
Yes, but it is best to close other applications. DISM uses significant CPU and disk resources, and other programs can slow it down or interfere. Running it in Safe Mode can also reduce interference from third-party software.
What if DISM says "Error 87" or "Error 0x800f081f"?
Error 87 usually means a typo in the command. Check the syntax. Error 0x800f081f means the source files could not be found. This happens when the local source path is wrong or the install.wim is missing. Verify the path and try again.
Do I need to run DISM before or after SFC?
Run DISM first, then SFC. DISM repairs the component store that SFC relies on. If SFC runs first and finds corruption it cannot fix, it will tell you to run DISM. So the standard order is DISM, then SFC.
Will DISM delete my personal files?
No. DISM only repairs system files in the Windows component store. It does not touch your documents, photos, or installed programs. However, it is always wise to have a backup before any system-level repair.