Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

DISM File Not Found: Identify and Repair the Image

· 5 min read · Home Tech

In this article
  1. What Is DISM and Why Does It Need Source Files?
  2. Identifying the Exact Error Code
  3. How to Find the Correct Source Files
  4. Step-by-Step Repair Process
  5. Common Mistakes and How to Avoid Them
  6. Alternatives When DISM Fails
  7. Frequently Asked Questions

The "DISM file not found" error usually means the Deployment Imaging Service and Management tool cannot locate the source files it needs to repair your Windows image. To fix it, you must first identify the correct source path—either your Windows installation media or a local folder with the required files—and then run DISM with that path, often using the /Source parameter. This article explains how to diagnose the error, locate the right files, and repair your Windows image safely.

What Is DISM and Why Does It Need Source Files?

DISM (Deployment Imaging Service and Management) is a built-in Windows command-line tool used to service and repair Windows images. When you run DISM /Online /Cleanup-Image /RestoreHealth, it scans the current Windows installation for corruption and attempts to fix it. To do this, it needs access to healthy copies of system files. If it cannot find them, it reports an error like "The source files could not be found" or "DISM failed, error: 0x800f081f." This happens because the default behavior is to use Windows Update as the source, but if that fails—due to network issues, update server problems, or an offline system—you must provide an alternative source.

Identifying the Exact Error Code

Before attempting a fix, you need to know which DISM error you are dealing with. Run the following command in an elevated Command Prompt (Run as administrator):

DISM /Online /Cleanup-Image /RestoreHealth

If it fails, the output will include an error code. Common ones include:

  • 0x800f081f – The source files could not be found. This is the most common "file not found" error.
  • 0x800f0906 – Windows Update cannot download the files, often due to network or server issues.
  • 0x800f0954 – DISM cannot access Windows Update, often because of Group Policy settings.

Write down the exact code—it will guide your next steps. For instance, 0x800f081f means you must supply a source, while 0x800f0906 might be fixed by checking your internet connection or using a different source.

How to Find the Correct Source Files

To repair the image, you need access to the Windows installation files. There are two primary sources:

  1. Windows Installation Media – A USB drive or DVD with the Windows installer. Insert it and note the drive letter (e.g., E:).
  2. A Local Folder – A folder containing the extracted install.wim or install.esd file. You can create this by mounting the ISO or copying the file from the media.

Once you have the source, you can point DISM to it. For example, if your USB drive is E:, run:

DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim

If you are using an install.esd file (common on newer media), you may need to specify an index number. First, list the indexes with:

DISM /Get-WimInfo /WimFile:E:\sources\install.esd

Then use the index for your Windows edition (e.g., Windows 10 Pro is often index 1 or 2):

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

Step-by-Step Repair Process

Follow these steps in order to repair your Windows image:

  1. Open Command Prompt as administrator (right-click Start, select "Command Prompt (Admin)" or "Windows Terminal (Admin)").
  2. Run DISM /Online /Cleanup-Image /CheckHealth to see if corruption is detected (this does not fix anything).
  3. Run DISM /Online /Cleanup-Image /ScanHealth to perform a deeper scan. This can take 10-15 minutes.
  4. If corruption is found, run DISM /Online /Cleanup-Image /RestoreHealth without a source first—this uses Windows Update.
  5. If that fails with a file-not-found error, run it again with the /Source parameter as described above.
  6. After DISM completes, run sfc /scannow to verify system file integrity.

If you are repairing an offline image (e.g., a Windows installation on another drive), you would use DISM /Image:C:\path\to\mount instead of /Online.

Common Mistakes and How to Avoid Them

Many users hit the "file not found" error because of a few simple mistakes:

  • Wrong source path – Double-check that the path to install.wim or install.esd is correct. The file is usually in the sources folder on the media.
  • Using the wrong index – If you specify an index that does not exist, DISM will error. Use /Get-WimInfo first.
  • Source version mismatch – The source files must be from the same Windows version (e.g., Windows 10 22H2) and ideally the same build. Using an older or newer version can cause issues.
  • Not running as administrator – DISM requires elevated privileges. If you get an access denied error, close and reopen Command Prompt as admin.
  • Ignoring the log file – DISM writes a log at C:\Windows\Logs\DISM\dism.log. This file contains detailed error information and can help you pinpoint the exact issue.

Alternatives When DISM Fails

If DISM still cannot find the source or fails to repair the image, consider these alternatives:

  • Use Windows Update – Sometimes simply running Windows Update and then retrying DISM works, as it may download the needed files.
  • Reset Windows – The "Reset this PC" feature can reinstall Windows while keeping your files. It uses its own recovery source and may bypass the DISM issue.
  • Use a different PC – If you have another computer with the same Windows version, you can copy its install.wim from C:\Windows\WinSxS or create a repair source from it.
  • Check for disk errors – Run chkdsk /f to rule out hard drive problems that might prevent reading source files.

Frequently Asked Questions

Q: What does "DISM file not found" mean exactly?
A: It means DISM cannot locate the source files it needs to repair your Windows image. This is usually because Windows Update is unavailable or the specified source path is incorrect.

Q: Can I use a Windows ISO instead of a USB drive?
A: Yes. You can mount the ISO by double-clicking it, which assigns it a drive letter, and then use that as the source path.

Q: How do I know which index to use with install.esd?
A: Run DISM /Get-WimInfo /WimFile:X:\sources\install.esd and look at the list of editions. The index number is the first column. Choose the one that matches your Windows edition.

Q: Will DISM delete my personal files?
A: No. DISM only repairs system files. Your personal documents, photos, and applications are not touched.

Q: Why does DISM fail even with a source?
A: Possible reasons include a corrupted source file, a version mismatch, or insufficient permissions. Check the DISM log for specific details.

Q: Is it safe to run DISM multiple times?
A: Yes, it is safe. DISM is designed to be idempotent—running it again will not harm your system, though it may take time.