How to Fix DISM Error in Windows (Step-by-Step)
In this article
DISM (Deployment Imaging Service and Management) errors often appear when Windows system files are corrupted, and the built-in repair tool fails. This guide walks you through the most common fixes for DISM errors, from basic checks to advanced repair commands. You'll need administrative access to your PC and a stable internet connection for some steps.
What You'll Need
- A Windows PC (Windows 10 or 11)
- Administrator account access
- Stable internet connection (for online repair)
- Windows installation media (optional, for offline repair)
Step-by-Step
- Run Command Prompt as Administrator
Press Windows + X and select "Terminal (Admin)" or "Command Prompt (Admin)". Confirm any User Account Control prompt.
- Check System File Integrity First
Type
sfc /scannowand press Enter. This checks for corrupted system files. If it finds issues, it will attempt to repair them. Reboot if prompted. - Run DISM with the Standard Command
Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This scans the Windows image and repairs issues using Windows Update. It may take 15-30 minutes. If it succeeds, restart your PC and runsfc /scannowagain. - If DISM Fails with Error 0x800f081f or 0x800f0906
These errors often mean Windows Update can't provide the needed files. Use the
/Sourceparameter with a Windows ISO or installation media.- Download the Windows 10 or 11 ISO from Microsoft's official website.
- Mount the ISO by right-clicking it and selecting "Mount". Note the drive letter (e.g.,
E:). - Run:
DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim /LimitAccess
- If DISM Fails with Error 0x800f0954
This often happens when Windows Update is blocked by Group Policy. Try running DISM with the
/LimitAccessflag and a local source, or temporarily disable the Windows Update service (not recommended for long-term) and try again. - Use DISM Offline (if Online Fails)
If the online repair keeps failing, boot from Windows installation media, select "Repair your computer" > "Troubleshoot" > "Command Prompt". Then run DISM against the offline Windows partition (usually
C:). Example:DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim - Check Disk for Errors
Sometimes DISM errors are caused by disk issues. Run
chkdsk /f /rand restart your PC. This will take a while. - Reset Windows Update Components
If DISM still fails, reset the Windows Update components manually. Stop the relevant services (
wuauserv,bits,cryptsvc), rename theSoftwareDistributionandCatroot2folders, then restart the services. Detailed steps are available in Microsoft's official documentation. - Perform a Repair Install (In-Place Upgrade)
As a last resort, run the Windows setup from within your current Windows. Choose "Keep personal files and apps". This reinstalls Windows while preserving your data and usually fixes DISM errors.
Common Mistakes
- Not running as administrator – DISM requires elevated privileges. Without admin rights, you'll get "Access denied" errors.
- Skipping SFC – Always run SFC first; it can fix issues that DISM might miss, and vice versa.
- Using the wrong source path – The
/Sourcepath must point to theinstall.wimorinstall.esdfile inside the Windows installation media, not the root of the drive. - Interrupting the process – DISM can take a long time. Let it finish; closing the window mid-scan can cause more corruption.
- Ignoring error codes – Each DISM error code has a specific meaning. Look up the code before trying random fixes.
Tips
- Always create a system restore point before running DISM or SFC.
- Use the
/LogPathparameter to save a detailed log file for troubleshooting. - If you're on a corporate network, check if WSUS (Windows Server Update Services) is interfering. Use
/LimitAccessto bypass it. - Keep your Windows updated to avoid known DISM issues.
- Run DISM in Safe Mode with Networking if the normal mode fails due to third-party software.
Troubleshooting
- DISM hangs at 20% or 40% – This is normal; it can stay stuck for several minutes. Wait at least 30 minutes before assuming it's frozen. If it truly hangs, cancel with Ctrl + C and try with
/LimitAccess. - Error 0x800f0907 – This indicates a policy issue. Check Group Policy for "Specify settings for optional component installation and component repair" and set it to "Contact Windows Update directly".
- Error 0x800f0950 – This means the source files are not found. Ensure the ISO is mounted and the path is correct.
- Error 87 – This is a syntax error. Double-check your command for typos, especially spaces and slashes.
- If all else fails – Use the Windows Media Creation Tool to perform a repair install, or consider resetting your PC (back up your data first).
Frequently Asked Questions
What does DISM stand for?
Deployment Imaging Service and Management. It's a command-line tool used to repair Windows system images.
Why does DISM keep failing with error 0x800f081f?
This error means the source files needed for repair are missing. This often happens when Windows Update is blocked or the local component store is corrupted. Using the /Source parameter with a Windows ISO is the typical fix.
Can I run DISM without an internet connection?
Yes, but you'll need a local source, such as a Windows installation media or a previously saved install.wim file. Use the /Source parameter to point to it.
How long does DISM take?
It can take anywhere from 10 minutes to over an hour, depending on your system and the extent of corruption. Do not interrupt it.
Is DISM safe to run?
Yes, DISM is a built-in Windows tool. It only modifies system files and does not touch your personal data. However, always back up important files before running any system repair.
What's the difference between SFC and DISM?
SFC checks and repairs individual system files, while DISM repairs the underlying Windows system image. They complement each other; run SFC first, then DISM if needed.