Basics

10 reasons why DISM doesn’t work in Windows 10 (and how to fix it)

Begin with a short, direct answer: if DISM fails in Windows 10, the problem is usually environmental — permissions, missing repair sources, blocked update services, corrupted component store, or syntax errors. This article explains common causes and hands-on fixes so you can get DISM not working in Windows 10 back to normal quickly.

You’ll learn why DISM errors occur, how to run it correctly, how to provide a valid repair source, how to fix service or network blockers, and how to gather logs when things still fail.


Key Takeaway

Run DISM from an elevated command prompt, supply a valid repair source if Windows Update is unavailable (use a matching Windows 10 ISO mounted as a drive), ensure Windows Update services and network access are allowed, and collect DISM/CBS logs if problems persist.


Quick Fix Guide

Quick Fix Guide

Reason for the Problem Quick Solution
1. Not running DISM as administrator Open Command Prompt (Admin) or PowerShell (Admin) and rerun the command.
2. Incorrect DISM command syntax Use the correct syntax like dism /online /cleanup-image /restorehealth.
3. No valid repair source (Windows Update blocked) Mount a matching Windows 10 ISO and use /Source:wim:Z:\sources\install.wim:1 /LimitAccess.
4. Windows Update service or network blocked Enable Windows Update service and ensure network/WSUS policies allow access.
5. Pending system reboot or pending.xml Restart the PC or delete C:\Windows\WinSxS\Pending.xml only after backup and following safe steps.
6. Antivirus or security software interference Temporarily disable third-party AV and retry DISM.
7. Corrupted Component Store beyond DISM Try SFC, run DISM with a good source, or perform an in-place upgrade repair.
8. Disk errors or low disk space Run chkdsk /f and free up disk space before rerunning DISM.
9. Version mismatch between source and installed OS Use an ISO that matches your build and edition of Windows 10.
10. Outdated or broken DISM binaries Run sfc /scannow or use an in-place upgrade to refresh system binaries.
See also  12 reasons why Mobile Hotspot doesn’t work in Windows 10 (and how to fix it)

Detailed Fixes for “DISM doesn’t work in Windows 10”

Below are 10 detailed reasons why DISM not working in Windows 10 happens and step-by-step ways to fix each one.

1. Not running DISM as administrator

Why it causes the problem

  • DISM needs elevated privileges to access and repair system components; without admin rights, it will fail with access denied errors.

Step-by-step solution

  1. Click Start, type cmd or powershell.
  2. Right-click Command Prompt or Windows PowerShell and choose Run as administrator.
  3. In the elevated window run the DISM command:
    • For most repairs: dism /online /cleanup-image /restorehealth
  4. Wait for the command to finish (can take 10–30+ minutes depending on issues).

Note: If you see “access is denied,” confirm you launched the shell as administrator.

2. Incorrect DISM command syntax

Why it causes the problem

  • Typoed parameters or wrong order can make DISM return errors or do nothing.

Step-by-step solution

  1. Use verified DISM syntax. The most common repair command is:
    • dism /online /cleanup-image /restorehealth
  2. If using a source WIM or ESD:
    • Mount or point to the source: dism /online /cleanup-image /restorehealth /source:wim:X:\sources\install.wim:1 /limitaccess
    • Or for ESD: /source:esd:X:\sources\install.esd:1
  3. If you need linting of options, run dism /? for help.

Tip: Always copy-paste commands to avoid typos.

3. No valid repair source (Windows Update blocked or offline)

Why it causes the problem

  • By default DISM uses Windows Update to download replacement components. If Update is blocked or offline, DISM can’t fetch files.

Step-by-step solution

  1. Obtain a matching Windows 10 ISO (same build and edition). Download from Microsoft Media Creation Tool or use an existing ISO.
  2. Right-click the ISO and choose Mount; it appears as drive letter (e.g., D:).
  3. Use the mounted ISO as source:
    • dism /online /cleanup-image /restorehealth /source:wim:D:\sources\install.wim:1 /limitaccess
    • If install.wim is not present, use install.esd and adjust syntax.
  4. If your install.wim contains multiple indexes, run:
    • dism /get-wiminfo /wimfile:D:\sources\install.wim to find the correct index number.

Note: Use /limitaccess to prevent DISM from contacting Windows Update while using the installed source.

4. Windows Update service or network blocked

Why it causes the problem

  • DISM uses Windows Update components; if the service is stopped or network policies/WSUS block downloads, DISM can’t retrieve files.

Step-by-step solution

  1. Ensure services are running:
    • Open Services (press Win + R, type services.msc).
    • Start or set to Automatic: Windows Update, Background Intelligent Transfer Service (BITS).
  2. Temporarily bypass WSUS (if permitted):
    • Open gpedit.msc (Pro/Enterprise): Computer Configuration > Administrative Templates > Windows Components > Windows Update; undo policies pointing to WSUS or allow direct Microsoft Update.
  3. If your PC uses a corporate proxy, ensure proxy settings allow access to Windows Update endpoints.

Tip: After enabling services, rerun dism /online /cleanup-image /restorehealth.

See also  11 reasons why USB keyboard doesn’t work in Windows 10 (and how to fix it)

5. Pending system reboot or pending.xml

Why it causes the problem

  • A pending reboot or pending component store operations (pending.xml) can lock files and prevent DISM from applying fixes.

Step-by-step solution

  1. Reboot the PC normally. Often this resolves pending operations.
  2. If reboot doesn’t help:
    • Open elevated Command Prompt.
    • Check for pending operations by viewing C:\Windows\WinSxS\Pending.xml (if present).
    • Only advanced users should remove it; recommended safer approach: run a system restart in Safe Mode and then run DISM.
  3. If documentation requires, consider running:
    • dism /online /cleanup-image /startcomponentcleanup
    • And then rerun dism /online /cleanup-image /restorehealth

Warning: Deleting system files like Pending.xml can have side effects—prefer reboot or safe-mode methods.

6. Antivirus or security software interference

Why it causes the problem

  • Third-party security apps may block DISM access to system files or block network calls.

Step-by-step solution

  1. Temporarily disable third-party antivirus/endpoint protection per vendor instructions.
  2. Re-run DISM in elevated command prompt:
    • dism /online /cleanup-image /restorehealth
  3. Once complete, re-enable your AV software.

Note: If managed by corporate IT, open a ticket to whitelist DISM operations rather than disabling protection permanently.

7. Corrupted Component Store beyond DISM

Why it causes the problem

  • In severe corruption, DISM may not be able to repair the component store on its own.

Step-by-step solution

  1. Run System File Checker first:
    • In elevated prompt: sfc /scannow
  2. If SFC fails or reports unfixable files, run DISM with a known-good source (see step 3 above) to repair the component store, then run sfc /scannow again.
  3. If still failing, perform an in-place upgrade repair:
    • Mount a Windows 10 ISO, run Setup.exe, choose Upgrade this PC now and select Keep personal files and apps.
    • This refreshes system files without deleting data.

Tip: In-place repair often fixes deep corruption that DISM/SFC can’t.

8. Disk errors or low disk space

Why it causes the problem

  • Disk corruption can block file writes and reads; low space prevents extraction of replacement files.

Step-by-step solution

  1. Check free space on C:. Free at least several GB (10 GB recommended).
  2. Run disk check:
    • Open elevated prompt and run chkdsk C: /f /r (you’ll likely be prompted to schedule at next reboot).
  3. Reboot to allow chkdsk to run.
  4. After disk check completes, rerun DISM.

Tip: Use Storage Sense or run Disk Cleanup (right-click C: > Properties > Disk Cleanup) to free space.

9. Version mismatch between source and installed OS

Why it causes the problem

  • Using source files from a different Windows build/edition causes incompatibilities and DISM errors.

Step-by-step solution

  1. Confirm installed OS version:
    • Open Settings > System > About or run winver.
  2. Get a matching ISO for that build and edition from Microsoft.
  3. Mount the ISO and then use the correct index for your edition:
    • dism /get-wiminfo /wimfile:D:\sources\install.wim
    • Use the matching index with /source:wim:…:index
  4. Then run dism /online /cleanup-image /restorehealth /source:… /limitaccess
See also  13 reasons why Realtek Audio doesn’t work in Windows 10 (and how to fix it)

Note: For major feature update mismatches, consider performing an in-place upgrade that matches your target build.

10. Outdated or broken DISM binaries

Why it causes the problem

  • If DISM or underlying servicing stack is broken, commands won’t run correctly.

Step-by-step solution

  1. Run sfc /scannow to repair system binaries:
    • Open elevated prompt and run sfc /scannow
  2. If SFC fails, use an ISO source to repair:
    • dism /online /cleanup-image /restorehealth /source:wim:D:\sources\install.wim:1 /limitaccess
  3. If both tools fail, perform an in-place upgrade (see step 7) to restore servicing stack components.

Tip: Keep Windows Update current; servicing stack updates are important for DISM reliability.


Collecting Logs and Further Diagnostics

Why collect logs

  • DISM and CBS logs contain the exact error codes and file names that help pinpoint failures.

How to collect logs

  1. After a failing DISM run, open the log files:
    • C:\Windows\Logs\DISM\dism.log
    • C:\Windows\Logs\CBS\CBS.log
  2. Copy these files to a safe location and inspect the most recent timestamps for errors.
  3. Search the log for keywords: error, failed, or HRESULT codes.
  4. If you need help, attach these logs to a support ticket or post to a trusted forum (mask personal info).

Extra steps

  • Use findstr /c:”[SR]” %windir%\logs\cbs\cbs.log >sfcdetails.txt to extract SFC details to a text file.

FAQ

What does DISM actually do and when should I run it?

DISM (Deployment Image Servicing and Management) repairs Windows’ component store and helps restore system health; run it when sfc /scannow reports unfixable files or you see system component errors.

Can I run DISM offline on another Windows image?

Yes — mount the offline image and use dism /image:C:\Mount /cleanup-image /restorehealth /source:wim:X:\sources\install.wim:1 to point DISM at the offline Windows folder.

Will running DISM delete my files or apps?

No — DISM only repairs system files and the component store; it does not remove personal files or installed applications. Backups are still recommended before major repairs.

How long does DISM take to complete?

It varies with the issue and system speed; simple checks may finish in 10–20 minutes, deep repairs can take over an hour. Use logs to track progress; the command window will show percent complete.

When should I do an in-place upgrade vs. other fixes?

Use an in-place upgrade if DISM and SFC can’t repair corruption, or if system instability persists; it refreshes system files while preserving apps and data.


Conclusion

DISM failures in Windows 10 are most often caused by permission issues, invalid repair sources, blocked Windows Update components, pending operations, or disk and corruption problems. Follow the steps above — run DISM elevated, provide a matching source if needed, ensure services and antivirus aren’t blocking operations, and collect logs for deeper analysis — to fix DISM not working in Windows 10.

About the author

Jonathan Dudamel

Jonathan Dudamel

I'm Jonathan Dudamel, an experienced IT specialist and network engineer passionate about all things Windows. I have deep expertise in Microsoft project management, virtualization (VMware ESXi and Hyper-V), and Microsoft’s hybrid platform. I'm also skilled with Microsoft O365, Azure ADDS, and Windows Server environments from 2003 through 2022.

My strengths include Microsoft network infrastructure, VMware platforms, CMMS, ERP systems, and server administration (2016/2022).