ThisCalculator

Everyday

DISM Command Stuck Processing? Fixes That Work

Updated · Standard formula, shown below

Estimated total time 60 min
Likely remaining
30.0 min
Result
Time already waited
30 min
You entered
Image size (GB)
20 GB
You entered

If the DISM command is stuck on “Processing” for a long time, it usually means the tool is still working, but sometimes it genuinely hangs and needs a restart or a different approach. This article explains why DISM appears stuck, how long is normal, and the steps to get it moving again or recover safely.

Formula

The formula used here is a rough estimate: Estimated total time (min) = max(10, Image Size in GB × 3). This assumes a typical modern PC with a SATA SSD and a healthy internet connection. The variable d is the size of the Windows image (the install.wim or the running system) in gigabytes. The constant 3 represents minutes per GB for a standard DISM operation (like RestoreHealth). The t variable is the minutes you have already waited. The remaining time is simply the estimate minus the time waited, never below zero.

Worked Example

Using the default values: image size = 20 GB, time waited = 30 minutes.

  1. Estimated total = 20 × 3 = 60 minutes.
  2. Remaining = 60 − 30 = 30 minutes.

So if you have waited 30 minutes on a 20 GB image, the calculator suggests about 30 more minutes. This matches the output of the formula above (30.0 minutes remaining).

Why DISM Seems to Hang

DISM (Deployment Imaging Service and Management Tool) is a command-line utility in Windows that services and prepares Windows images. When you run DISM /Online /Cleanup-Image /RestoreHealth, it scans the component store and fixes corruption. That scan is resource-intensive and can take anywhere from 10 minutes to over an hour on older hardware. The command often appears frozen because the progress bar stays at 20% or 40% for long stretches, especially when it is downloading files from Windows Update. The tool is not dead; it is just slow. However, if the percentage does not change for more than 90 minutes, or the command has been running for over 3 hours, it is likely stuck.

How Long Should DISM Take?

There is no official timeout from Microsoft, but practical experience and community reporting give a useful range. For a typical Windows 10/11 installation (about 20-30 GB of system files), a full RestoreHealth scan takes 15 to 60 minutes on a healthy system with a decent internet connection. If you are running DISM on an offline image (a .wim file) that is very large (50 GB+), it can take several hours. The key factor is disk speed and CPU power. If you are using a mechanical hard drive, expect times to be 2-3 times longer than an SSD. If you have waited less than 30 minutes, just let it run. If you have waited over 2 hours with no movement, proceed to the fixes below.

Common Causes of a Genuine Hang

When DISM is truly stuck, it is usually due to one of these issues:

  • Windows Update connectivity: DISM tries to contact Windows Update to download missing files. If the network is blocked, or the Windows Update service is disabled, it can hang indefinitely.
  • Corrupted local source: If you are using a source file (like an ISO or a local folder) that is itself corrupted, DISM can get stuck trying to read it.
  • Antivirus interference: Some third-party antivirus tools lock system files that DISM needs to modify, causing a deadlock.
  • Pending reboot: If Windows has pending updates that require a restart, DISM may not be able to complete its operations.
  • Disk errors: Bad sectors on the drive can cause the read/write operations to hang.

How to Fix a Stuck DISM Command

Follow these steps in order. Do not skip the first one, as it is the safest and most effective.

  1. Wait and monitor: Press Ctrl+Shift+Esc to open Task Manager. Look for the DISM process (it may show as DismHost.exe or Dism.exe). Check its CPU and disk usage. If it is using CPU or disk, it is working. If it is at 0% for 15+ minutes, it is stuck.
  2. Cancel and restart: Press Ctrl+C in the command prompt to stop the command. Then restart your computer (this clears any locked files). Run the command again with an elevated prompt (Run as Administrator).
  3. Use a local source: Instead of relying on Windows Update, point DISM to a local copy of the Windows installation files. Mount a Windows ISO or use the WinSxS folder as a source. Example: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\repro\sources\install.wim /LimitAccess
  4. Check Windows Update service: Press Win+R, type services.msc, and ensure the “Windows Update” service is set to Automatic and is running. If not, start it.
  5. Run SFC first: Sometimes DISM hangs because the system file checker (SFC) has left a lock. Run sfc /scannow first, restart, then run DISM again.
  6. Disable antivirus temporarily: If you have a third-party AV, disable its real-time protection for the duration of the DISM command. Re-enable it after.
  7. Use the offline method: Boot from a Windows installation USB, open Command Prompt (Shift+F10), and run DISM against the offline Windows partition. This avoids many conflicts. The command is: DISM /Image:C: /Cleanup-Image /RestoreHealth (replace C: with the correct drive letter).

What to Do If DISM Still Won’t Finish

If you have tried all the above and DISM still hangs, you have a deeper problem. The next step is to check the DISM log file. It is located at C:\Windows\Logs\DISM\dism.log. Open it with Notepad and look for errors or the last line before the hang. Common errors include 0x800f081f (source not found) or 0x800f0906 (download failed). These indicate that the source files are missing. In that case, you can try a repair install of Windows using the Media Creation Tool, which keeps your files and apps. This is a more aggressive but often successful fix. If that fails, a full reset is the last resort.

Frequently Asked Questions

Is it safe to cancel DISM mid-process?

It is generally safe to cancel DISM with Ctrl+C or by closing the command window. DISM is designed to be idempotent, meaning it can resume from a clean state. However, you should restart your computer after cancelling to release any locked files. Do not force shutdown your PC while DISM is writing to the system, as that could corrupt the image.

Why does DISM stay at 20% for an hour?

The 20% mark is where DISM often starts downloading files from Windows Update. The download speed and the size of the required files can make it appear stuck. As long as the process is using CPU or network, it is working. If it is at 0% CPU and 0% network for 30 minutes, it is stuck.

Can I run DISM while using my computer?

Yes, you can use your computer while DISM runs, but it will slow down the process. For best results, close heavy applications and let the command run in the background. Avoid launching games or video editing software that stress the disk and CPU.

What is the difference between DISM and SFC?

SFC (System File Checker) scans and repairs protected system files by replacing them from the Windows cache. DISM repairs the component store itself, which is the source that SFC uses. If SFC fails, you run DISM first to fix the store, then run SFC again. They work together, but DISM is more thorough.

How do I know if DISM is actually stuck or just slow?

Check Task Manager. If the DISM process is using CPU (even 1-5%) or disk (reading/writing), it is working. Also, you can open the DISM log file and see if new lines are being added. If the log has not changed in 30 minutes and the process is idle, it is stuck.

Can I use DISM on Windows 7 or 8?

Yes, DISM is available on Windows 7 SP1 and later, but the /RestoreHealth option with /Online is only fully supported on Windows 8 and later. On Windows 7, you may need to use the /Source parameter with a valid install.wim. The command syntax is the same, but the behavior may vary.

Related

Formula used
in t | Time already waited | min | 30 | 0
in d | Image size (GB) | GB | 20 | 0
out pace | Estimated total time | min | max(10, d * 3) | 0
out remaining | Likely remaining | min | max(0, pace - t) | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.