DISM (Deployment Imaging Service and Management) is a built-in Windows 10 tool that repairs corrupted system files, especially when the System File Checker (SFC) fails. This guide walks you through using DISM to fix component store corruption, which is often the root cause of persistent errors, blue screens, and update failures. You’ll need to run a few commands in an elevated Command Prompt, and the process typically takes 10–30 minutes depending on your system.
What You’ll Need
- A Windows 10 PC that can boot to the desktop or Recovery Environment.
- Administrator account access.
- Stable internet connection (for the online repair option).
- Windows 10 installation media (USB or DVD) if offline repair is required.
Step-by-Step
- Open Command Prompt as Administrator. Press Windows + X and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”. Click “Yes” on the UAC prompt.
- Run the DISM scan. Type the following and press Enter:
DISM /Online /Cleanup-Image /CheckHealth
This quick check tells you if any corruption is detected. It doesn’t fix anything, just reports status. - Run a deeper scan. Type:
DISM /Online /Cleanup-Image /ScanHealth
This scans the component store for corruption. It can take 10–20 minutes. If it finds issues, proceed to the next step. - Repair the image. Type:
DISM /Online /Cleanup-Image /RestoreHealth
This uses Windows Update to download and replace corrupted files. It can take 20–30 minutes. If you have a slow connection, it may take longer. - If the online repair fails (e.g., due to network issues), use a local source. Mount your Windows 10 installation media (or insert it) and note the drive letter (e.g., D:). Then run:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
ReplaceD:with the actual drive letter. If you have aninstall.esdinstead ofinstall.wim, you’ll need to extract the index first (see Troubleshooting). - Run SFC after DISM. After a successful repair, run:
sfc /scannow
This fixes any remaining corrupted system files. It may take 15–20 minutes. - Restart your computer. Reboot to apply all changes. Check if the original problem is resolved.
Common Mistakes
- Skipping the scan steps. Jumping straight to RestoreHealth without checking health can waste time; always run CheckHealth and ScanHealth first to confirm corruption exists.
- Using the wrong command syntax. Typos like missing spaces or slashes will cause errors. Copy-paste commands when possible.
- Running DISM without admin rights. This will result in “Access Denied” or “Error 5”. Always run as Administrator.
- Interrupting the process. Closing the Command Prompt or shutting down during a scan can cause further corruption. Let it finish.
- Assuming DISM fixes everything. DISM repairs the component store, but SFC fixes system files. Run both in the correct order.
- Using an outdated installation media. If the source files are older than your current Windows version, the repair may fail or cause issues.
Tips
- Run DISM in Safe Mode if the normal mode is unstable. Boot to Safe Mode with Networking and run the same commands.
- Check the CBS log. If DISM fails, look at
C:\Windows\Logs\CBS\CBS.logfor detailed error codes. Search for “Error” to find the root cause. - Use the /LimitAccess flag with a local source to prevent DISM from trying Windows Update, which can be slower.
- Ensure you have enough disk space. DISM requires at least 5–10 GB free space for temporary files.
- Consider a repair install if DISM repeatedly fails. The “Reset this PC” option keeps your files but reinstalls Windows.
Troubleshooting
- Error 87: The option is unknown. This usually means a typo. Recheck the command syntax, especially spaces and slashes.
- Error 0x800f081f: Source files not found. This means DISM can’t locate the source. If using a local source, verify the path and that the install.wim exists. If using Windows Update, check your internet connection and try again.
- Error 0x800f0906: Source files could not be downloaded. This is often a network issue. Try using a local source or reset Windows Update components (stop BITS, Cryptographic, MSI Installer, and Windows Update services, then rename SoftwareDistribution and Catroot2 folders).
- Error 0x800f0954: DISM failed to do the operation. This can happen if the component store is severely damaged. Try running DISM from the Windows Recovery Environment (WinRE). Boot to recovery, select Troubleshoot > Advanced Options > Command Prompt, and run the commands there (note: use /Image:C:\ instead of /Online).
- Using install.esd instead of install.wim. If your installation media has install.esd, you need to extract the install.wim from it. Run:
dism /Get-WimInfo /WimFile:D:\sources\install.esd
Find the index number for Windows 10 Pro (usually index 1), then export it:dism /Export-Image /SourceImageFile:D:\sources\install.esd /SourceIndex:1 /DestinationImageFile:C:\temp\install.wim /Compress:max
Then use that file as the source. - DISM hangs at 20% or 40%. This is normal; it can appear stuck for several minutes. Wait at least 30 minutes before assuming it’s frozen. If it truly hangs, press Ctrl+C to cancel and try again with /LimitAccess.
Frequently Asked Questions
Is DISM safe to run?
Yes, DISM is a Microsoft-built tool designed to repair Windows. It only modifies system files and does not touch your personal data. However, always back up important files before running any system repair.
How long does DISM take?
CheckHealth takes a few seconds. ScanHealth can take 10–20 minutes. RestoreHealth can take 20–30 minutes or longer depending on your internet speed and system performance. It’s normal for it to appear stuck.
Do I need to run SFC after DISM?
Yes, it’s recommended. DISM repairs the component store (the source of system files), while SFC repairs the actual system files. Running SFC after DISM ensures all corrupted files are fixed.
Can I run DISM without internet?
Yes, you can use a local source like a Windows 10 installation USB or a Windows image file (install.wim). Use the /Source and /LimitAccess parameters to avoid contacting Windows Update.
What if DISM fails every time?
If DISM consistently fails, your Windows installation may be too corrupted. Try a repair install (“Reset this PC” with “Keep my files”) or a clean install. Also, check your hard drive health with chkdsk /f and chkdsk /r as disk errors can cause corruption.
Does DISM work on Windows 11?
Yes, the same DISM commands work on Windows 11. The process is identical, and the tool is included in all modern Windows versions.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- MacBook Charger Not Working? Fix It Now
- Fix Windows Cannot Be Installed to This Disk
- Zoom on iPhone & iPad: Host or Join a Meeting
- Fix iPhone SE 4 Unable to Activate: Step-by-Step
- Keep Important Emails From Getting Buried in iPhone Mail Categories
- How to Clear RAM on iPhone: Speed It Up