How to Fix DISM Errors and Repair Windows 11 Image (2026 Guide)

If you’ve been troubleshooting Windows problems, there’s a good chance you’ve come across the Deployment Image Servicing and Management (DISM) tool. DISM is a built-in Windows command-line utility designed to repair the Windows image and fix corruption that may prevent features, updates, or system components from working correctly.

While DISM is a powerful repair tool, it doesn’t always run successfully. You may encounter errors such as DISM Error 87, DISM Error 50, DISM Error 2, or the common “The source files could not be found” message. These errors can prevent Windows from repairing itself and may lead to ongoing issues such as failed updates, system instability, or corrupted system files.

Fortunately, most DISM errors can be resolved using a few troubleshooting steps. In this guide, we’ll explain what DISM does, why these errors occur, and the most effective ways to repair the Windows image and get DISM working again in Windows 11 and Windows 10.

What Is DISM and What Does It Do?

Deployment Image Servicing and Management (DISM) is a built-in Windows command-line tool used to repair and maintain the Windows image. The Windows image contains the files and components that Windows relies on to operate correctly.

When system files become corrupted, Windows updates fail, or built-in features stop working, DISM can scan the Windows image for damage and repair it using files from Windows Update or a local installation source.

The most commonly used DISM commands are:

DISM /Online /Cleanup-Image /CheckHealth

Checks whether corruption has been detected.

DISM /Online /Cleanup-Image /ScanHealth

Performs a more detailed scan for corruption.

DISM /Online /Cleanup-Image /RestoreHealth

Scans for corruption and attempts to repair the Windows image automatically.

In many cases, DISM is used alongside the System File Checker (SFC) tool. If Windows system files are damaged, Microsoft recommends repairing the Windows image with DISM first and then running SFC to replace corrupted system files.

Common DISM Errors in Windows 11

While DISM is a powerful repair tool, it doesn’t always complete successfully. If something prevents DISM from accessing the required files or services, you may see an error message instead of a successful repair.

Some of the most common DISM errors include:

  • DISM Error 87 – Usually caused by an incorrect command syntax or missing spaces in the command.
  • DISM Error 50 – Often appears when DISM is run in an unsupported environment or when the Windows image cannot be serviced.
  • DISM Error 2 – Indicates that DISM cannot locate a required file or path.
  • DISM Error 3 – Typically related to an invalid path or inaccessible source files.
  • 0x800f081f (The Source Files Could Not Be Found) – One of the most common DISM errors, usually occurring when Windows cannot download or locate the files needed to repair the image.
  • 0x800f0906 – DISM cannot connect to Windows Update or access the required repair source.
Command Prompt window displaying DISM Error 87: The restorehealth option is not recognized in this context

Most DISM errors are caused by incorrect commands, corrupted Windows Update components, damaged system files, network issues, or missing installation files. Fortunately, the fixes below can resolve the majority of these problems and help restore the Windows image successfully.

Before You Start: Basic Checks

Before trying the more advanced DISM fixes, perform these quick checks. Many DISM errors are caused by temporary glitches, network issues, or incorrect command usage.

  • Run Command Prompt as Administrator: DISM requires administrative privileges to scan and repair the Windows image. Right-click Command Prompt and select Run as administrator before running any DISM commands.
  • Check Your Internet Connection: DISM may need to download repair files from Windows Update. Ensure your internet connection is stable and working properly.
  • Restart Your Computer: A simple restart can resolve temporary issues that may be preventing DISM from running correctly.
  • Verify the DISM Command: Many DISM errors, especially Error 87, are caused by typing mistakes or incorrect command syntax. Double-check the command before running it.

If DISM still fails after these checks, continue with the troubleshooting methods below.

Fix #1: Run DISM from an Elevated Command Prompt

One of the most common reasons DISM fails is that it isn’t being run with administrative privileges. Without administrator access, DISM may be unable to scan or repair the Windows image, resulting in errors or access-denied messages.

How to Run DISM as Administrator

  1. Click Start and search for Command Prompt.
  2. Right-click Command Prompt and select Run as administrator.
  3. Click Yes if prompted by User Account Control (UAC).
  4. Run the following command:
DISM /Online /Cleanup-Image /RestoreHealth
  1. Wait for the process to complete. Depending on your system, the scan may take several minutes.
DISM restoreHealth command on winodws

If DISM runs successfully, restart your computer and check whether the original problem has been resolved. If you still receive an error message, continue with the next fix.

Fix #2: Use the Correct DISM Command

Incorrect command syntax is one of the most common causes of DISM failures, especially DISM Error 87. Even a missing space, incorrect switch, or typing mistake can prevent DISM from running successfully.

Correct DISM Commands

To check whether corruption exists in the Windows image, run:

DISM /Online /Cleanup-Image /CheckHealth

To perform a detailed scan:

DISM /Online /Cleanup-Image /ScanHealth

To scan and repair the Windows image:

DISM /Online /Cleanup-Image /RestoreHealth

Common Mistakes

  • Missing spaces between command parameters.
  • Using forward slashes incorrectly.
  • Typing CleanupImage instead of Cleanup-Image.
  • Running the command in a non-administrator Command Prompt.
  • Copying commands from outdated websites.

If you’re receiving Error 87, carefully retype the command instead of copying and pasting it. Once you’ve verified the syntax is correct, run the command again.

If DISM still fails, move on to the next troubleshooting method.

Fix #3: Run SFC Before DISM

In some cases, corrupted system files can interfere with DISM and prevent it from completing successfully. Running the System File Checker (SFC) first may repair these files and allow DISM to run normally.

How to Run SFC

  1. Open Command Prompt as Administrator.
  2. Run the following command:
sfc /scannow
  1. Wait for the scan to complete. This process may take several minutes.
  2. Restart your computer if SFC finds and repairs any files.
sfc and dism command

After restarting, run the DISM repair command again:

DISM /Online /Cleanup-Image /RestoreHealth

If DISM still reports errors after SFC completes, continue with the next fix.

Fix #4: Check Your Internet Connection

DISM often relies on Windows Update to download the files needed to repair the Windows image. If your internet connection is unstable or blocked, you may encounter errors such as 0x800f081f or 0x800f0906.

How to Check

  • Open a web browser and verify that websites load normally.
  • Restart your router or modem if necessary.
  • Disconnect and reconnect to your Wi-Fi network.
  • If possible, switch to a different network connection.
  • Temporarily disable VPN software and check whether DISM runs successfully.

After confirming that your internet connection is working correctly, run the repair command again:

DISM /Online /Cleanup-Image /RestoreHealth

If DISM still cannot download the required files, you may need to provide a local Windows installation source, which we’ll cover in the next fix.

Fix #5: Specify a Local Windows Image Source

If DISM displays “The source files could not be found” or error codes such as 0x800f081f and 0x800f0906, Windows may be unable to download the files needed to repair the image. In this situation, you can use a Windows ISO file or installation media as the repair source.

How to Use a Local Repair Source

  1. Download the Windows 11 ISO that matches your installed version.
  2. Double-click the ISO file to mount it.
  3. Note the drive letter assigned to the mounted ISO (for example, D:).
  4. Open Command Prompt as Administrator.
  5. Run the following command (replace D: with your ISO drive letter):
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /LimitAccess

If your ISO contains install.esd instead of install.wim, use:

DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:D:\sources\install.esd:1 /LimitAccess

The /LimitAccess switch prevents DISM from contacting Windows Update and forces it to use the local installation files instead.

This method resolves many cases where DISM cannot locate the files required to repair the Windows image.

Fix #6: Reset Windows Update Components

DISM relies on Windows Update to download repair files when repairing the Windows image. If Windows Update components are corrupted, DISM may fail with various errors, including source file and download-related errors.

How to Reset Windows Update Components

  1. Open Command Prompt as Administrator.
  2. Stop the required services:
net stop wuauserv
net stop bits
net stop cryptsvc
  1. Rename the update cache folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
  1. Restart the services:
net start wuauserv
net start bits
net start cryptsvc
  1. Restart your computer and run the DISM command again.

Resetting Windows Update components forces Windows to create fresh update files and can resolve problems caused by corrupted update caches or damaged update services.

Fix #7: Repair Windows Using Installation Media

If DISM continues to fail after trying all the previous fixes, the Windows image may be too damaged to repair using standard methods. In this situation, performing an in-place repair upgrade is often the most effective solution.

An in-place repair upgrade reinstalls Windows while keeping your personal files, applications, and settings intact. It can repair damaged system components, Windows Update issues, and DISM-related corruption without requiring a full system reset.

How to Perform an In-Place Repair Upgrade

  1. Download the latest Windows 11 ISO from Microsoft.
  2. Mount the ISO by double-clicking it.
  3. Open the mounted drive and run setup.exe.
  4. Select Keep personal files and apps when prompted.
  5. Follow the on-screen instructions to complete the repair installation.

The process may take some time and your PC will restart several times. Once the repair upgrade is complete, run the following command again to verify that the Windows image is healthy:

DISM /Online /Cleanup-Image /RestoreHealth

If the command completes successfully, the underlying image corruption has likely been repaired.

When to Use DISM, SFC, and CHKDSK

Windows includes several built-in repair tools, and knowing when to use each one can help you troubleshoot problems more effectively.

Run System File Checker (SFC) when you suspect corrupted or missing Windows system files. It’s often the first tool to try when Windows features stop working, apps crash unexpectedly, or updates fail to install.

sfc /scannow

Use DISM when SFC cannot repair corrupted files or when Windows Update, built-in apps, or system components continue to malfunction. DISM repairs the Windows image that SFC relies on.

DISM /Online /Cleanup-Image /RestoreHealth

Run CHKDSK if you suspect disk corruption, file system errors, or storage-related problems that may be affecting Windows stability.

chkdsk /f

Recommended Order

For most Windows repair scenarios, use the tools in the following order:

  1. Run SFC.
  2. Run DISM if SFC cannot repair all files.
  3. Run CHKDSK if you suspect disk-related issues.

Following this order helps resolve most Windows image and system file corruption issues without requiring a full Windows reinstall.

Frequently Asked Questions (FAQ)

What does DISM do in Windows?

DISM (Deployment Image Servicing and Management) is a built-in Windows tool that repairs the Windows image and fixes corruption affecting Windows Update, system components, and built-in features. It’s commonly used when SFC cannot repair damaged files.

Should I run SFC or DISM first?

In most cases, run SFC (System File Checker) first. If SFC reports that it found corrupted files but couldn’t repair them, run DISM to repair the Windows image and then run SFC again.

How long does DISM RestoreHealth take?

The DISM /RestoreHealth command can take anywhere from a few minutes to over an hour, depending on your system performance, internet connection, and the level of corruption being repaired. It’s normal for the progress indicator to appear stuck at certain percentages.

How do I fix “The source files could not be found” error?

This error usually occurs when DISM cannot download or locate the files required for repair. Using a Windows ISO file or installation media as a local repair source often resolves the problem.

Is it safe to stop a DISM scan?

No. Interrupting a DISM repair process can leave the Windows image in an inconsistent state. Allow the scan to complete before closing Command Prompt or restarting your computer.

Can DISM fix Windows Update problems?

Yes. Because Windows Update relies on a healthy Windows image, DISM can often resolve update installation failures, update error codes, and other Windows Update-related issues caused by system corruption.

About the Author

srikant sahu

Srikant is a Windows expert with 7+ years of IT experience, certified in Microsoft (MCSA) and Cisco technologies. He specializes in fixing Windows 11/10 issues and creating simple, step-by-step guides to solve common PC problems.