DISM Windows 11 Repair: How to Use It
In this article
Yes, DISM (Deployment Imaging Service and Management) is a built-in Windows 11 command-line tool that repairs corrupted system image files, and it is often the first step in fixing serious Windows update or component issues. You run it from an elevated Command Prompt or PowerShell, and it works by comparing your system files against a healthy image stored either locally or on Windows Update servers.
What DISM Actually Does
DISM is a multi-purpose tool, but for repair purposes it primarily fixes the component store (the folder that Windows uses to service updates and features). When Windows Update fails, or when you get errors like "0x800f081f" or "0x80073712," it usually means the component store is damaged. DISM repairs that store, which then allows the System File Checker (SFC) to work correctly. Think of DISM as fixing the foundation, while SFC fixes the walls.
The most common repair command is:
DISM /Online /Cleanup-Image /RestoreHealth
This scans the online Windows image (the one you're running) and automatically uses Windows Update to download the needed healthy files. It does not delete your personal files or installed programs.
How to Run DISM in Windows 11
Running DISM requires administrator privileges. Here's the step-by-step process:
- Click the Start button, type cmd or PowerShell.
- Right-click the result and select Run as administrator.
- If prompted by User Account Control, click Yes.
- Type the command
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Wait for the process to complete. It can take 10-30 minutes or longer depending on your system and internet speed.
- When it finishes, reboot your PC, then run
sfc /scannowto repair system files.
You may also see a progress bar. If it gets stuck at 20% or 40%, that's normal—it's often just waiting for a download. Do not close the window.
Using DISM with a Local Source (When Windows Update Fails)
If your internet is slow or Windows Update is itself broken, you can point DISM to a local source—usually a Windows 11 ISO or a USB installation drive. This is called a "repair source." You need to mount the ISO or insert the USB, note the drive letter (e.g., D:), then run:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
But there's a catch: the install.wim file is often too large for a standard FAT32 USB drive (over 4GB). In that case, you can use the install.esd file instead, but you'll need to specify the index number of the Windows edition. For example:
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.esd:1 /LimitAccess
If you're not sure which index to use, run DISM /Get-WimInfo /WimFile:D:\sources\install.esd to list the editions. Using the wrong index will cause an error.
DISM vs. SFC vs. Startup Repair
Windows 11 offers three main repair tools, and they are often confused:
- DISM – Repairs the component store (the source for system files). Use it first if you suspect corruption.
- SFC (System File Checker) – Scans and replaces corrupted system files, but it relies on the component store. If the store is broken, SFC will fail.
- Startup Repair – Fixes boot issues (like blue screens or boot loops), not file corruption. It's launched from the Windows Recovery Environment.
A common mistake is running SFC first and getting errors. The correct order is DISM, then SFC, then reboot. If you still have issues, you may need to use the "Reset this PC" feature or perform a clean install.
Common DISM Errors and Their Meanings
DISM is generally reliable, but you might encounter errors that confuse you. Here are the most frequent ones:
- Error 87 – The command-line option is misspelled or not recognized. Check your syntax.
- Error 2 – The system cannot find the file specified. This often means the source path is wrong.
- Error 5 – Access denied. You must run DISM as administrator.
- Error 0x800f081f – The source files could not be found. Try using a different source or check your internet connection.
- Error 0x800f0906 – Windows Update cannot download the files. This usually happens when the update service is disabled or blocked.
If DISM reports "The restore operation completed successfully" but the problem persists, run SFC again. Sometimes a single pass isn't enough.
Is DISM Safe? Risks and Precautions
DISM is a safe, official Microsoft tool. It won't delete your files or break your system if used correctly. However, there are a few precautions:
- Always run it from an elevated prompt (Administrator).
- Do not interrupt the process. Let it finish, even if it seems stuck.
- Ensure you have a stable power source (laptop plugged in).
- If you use a local source, make sure it's the same Windows 11 version and edition (Home vs. Pro) as your system.
Using a mismatched source can cause errors, but it won't damage your system. The worst case is that DISM fails to repair.
Alternatives to DISM for Windows 11 Repair
If DISM doesn't fix your issue, or you can't run it because Windows won't boot, consider these alternatives:
- Windows Update Troubleshooter – Built-in tool that fixes common update problems.
- Reset this PC – Reinstalls Windows while keeping your files (or removing everything). This fixes most corruption but takes longer.
- In-place Upgrade Repair – Run the Windows 11 installer from within Windows, which reinstalls the OS and keeps your files and apps.
- System Restore – Roll back to a previous restore point if you have one.
- Clean Install – Wipes everything and installs Windows fresh. This is the nuclear option.
For most users, DISM is the first line of defense. But if you're not comfortable with command-line tools, the in-place upgrade repair is a safer graphical alternative.
Frequently Asked Questions
How long does DISM take in Windows 11?
It typically takes 10 to 30 minutes, but can be longer on slow internet or if the component store is heavily damaged. The progress bar may freeze at 20% or 40%—this is normal, as it's often waiting for a download. Let it run overnight if needed.
Can DISM fix Blue Screen of Death (BSOD) errors?
Sometimes, if the BSOD is caused by corrupted system files or drivers. DISM repairs the component store, which can fix file corruption. However, if the BSOD is due to hardware failure or a faulty driver, DISM won't help. Run it, then SFC, and if the issue persists, check hardware diagnostics.
Do I need to run DISM as administrator?
Yes, absolutely. DISM requires elevated privileges. If you run it in a normal Command Prompt, you'll get an "access denied" error (Error 5). Always right-click and select "Run as administrator."
Will DISM delete my personal files?
No. DISM only repairs system files and the component store. Your documents, photos, and installed applications are untouched. It's safe to run without backing up, though it's always a good habit to have backups.
What does "DISM /Online /Cleanup-Image /RestoreHealth" do exactly?
It scans the Windows 11 image that's currently running and uses Windows Update to download healthy versions of corrupted files. It then replaces the bad files with the good ones. If Windows Update is unavailable, you can provide a local source with the /Source parameter.
Can I run DISM from Windows Recovery Environment (WinRE)?
Yes, but it's more complex. You'd need to boot from a Windows 11 installation USB, open Command Prompt from the recovery menu, and use the /Image parameter to point to your installed Windows. For most users, running DISM from within Windows is simpler and works just as well.