When you run the DISM /RestoreHealth command in Windows 11, it may fail with error 0x800f081f, indicating that the source files it needs are missing. This failure occurs because DISM tries to pull repair files from a local Windows image or Windows Update, but if neither location has the correct ESD or WIM file, the command cannot proceed. The ESD file is the encrypted service deployment file used by Windows 11 for component repairs. This article explains why DISM requires a valid online source ESD, how to verify your current setup, and how to force DISM to use a known-good source file.
Key Takeaways: Why DISM /RestoreHealth Fails Without an Online Source ESD
- DISM /RestoreHealth command: Fails with error 0x800f081f when it cannot find a valid ESD or WIM source file for Windows 11 component repair.
- Windows Update source: Automatically provides the correct ESD file, but only if your PC has internet access and the update service is running.
- Manual source path with /LimitAccess: Forces DISM to use a local ESD file, bypassing Windows Update, which fixes the failure when the online source is unavailable.
Why DISM /RestoreHealth Fails on Windows 11
The DISM tool in Windows 11 repairs corrupted system files by comparing current files against a healthy reference image. By default, DISM looks for that reference image in two places: the local Windows side-by-side store and Windows Update. If neither location contains a matching ESD file, DISM returns error 0x800f081f.
The ESD file is a compressed and encrypted format that Microsoft uses for Windows 11 installation and repair images. Unlike the older WIM format, ESD files are not directly mountable without conversion. Windows Update downloads the correct ESD for your exact Windows 11 build and edition. When you run DISM /RestoreHealth without specifying a source, it attempts to contact Windows Update. If the Windows Update service is disabled, blocked by a firewall, or disconnected from the internet, DISM cannot retrieve the ESD file.
The Role of the Windows Side-by-Side Store
Windows 11 maintains a local component store at C:\Windows\WinSxS. This folder holds backup copies of system files. When DISM runs, it first checks this store for the required ESD or WIM. If the store itself is corrupted or missing files, DISM must go to Windows Update. A corrupted store is often the reason you are running DISM in the first place, creating a circular dependency.
Why Windows Update Fails as a Source
Windows Update may fail to provide the ESD file for several reasons. Your Windows 11 edition may not match the ESD available on Microsoft servers. Group Policy settings can block Windows Update from serving repair content. Third-party antivirus software may interfere with the download. Network proxies or VPNs can also prevent DISM from reaching the update endpoint. In all these cases, DISM has no source and returns error 0x800f081f.
Steps to Fix DISM /RestoreHealth by Providing a Local Source ESD
To resolve the failure, you must supply a local ESD file that matches your Windows 11 build. The following steps show how to obtain the correct ESD, convert it if needed, and run DISM with a manual source path.
- Check your Windows 11 build and edition
Press Win + R, type winver, and press Enter. Note the build number and edition listed in the About Windows dialog. You need an ESD file from the exact same build number. - Download the correct Windows 11 ESD file
Use the Media Creation Tool from Microsoft to download an ISO file for your edition. Mount the ISO by double-clicking it. Inside the mounted drive, navigate to the sources folder. Locate the file named install.esd or install.wim. If the file is a WIM, you can use it directly. If it is an ESD, proceed to the next step. - Convert the ESD to WIM if needed
Open Command Prompt as Administrator. Run the following command to list the image indexes in the ESD file:dism /Get-WimInfo /WimFile:D:\sources\install.esd
Replace D: with the drive letter of your mounted ISO. Note the index number for Windows 11 Pro or your edition. Then run:dism /Export-Image /SourceImageFile:D:\sources\install.esd /SourceIndex:6 /DestinationImageFile:C:\repair\install.wim /Compress:max
This creates a WIM file at C:\repair\install.wim. The export process may take 10 to 20 minutes. - Run DISM /RestoreHealth with the local source
In the same Administrator Command Prompt, run:DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\repair\install.wim /LimitAccess
The /LimitAccess switch prevents DISM from contacting Windows Update. It uses only the local WIM file you provided. - Verify the repair completed
After the command finishes, run:DISM /Online /Cleanup-Image /CheckHealth
This confirms that the component store is healthy. If no errors appear, the repair succeeded.
Common Issues When DISM /RestoreHealth Fails
DISM Error 0x800f081f Even After Providing a Local Source
This error persists if the local ESD or WIM file is from a different Windows 11 build. Compare the build number in the Winver dialog with the build number inside the ESD. To check the ESD build, run:dism /Get-WimInfo /WimFile:D:\sources\install.esd
Look for the version number in the output. If they do not match, download the correct ISO for your exact build.
DISM Stuck at 20% or 40% Progress
A stuck progress bar usually indicates that DISM cannot read the source file or that the source file is corrupted. Verify that the WIM or ESD file is intact by checking its file size against the original. Re-download the ISO if the file size differs by more than a few megabytes. Also ensure the drive where the source file resides has enough free space for temporary extraction.
DISM Fails with Error 0x80070002 or 0x80070003
Error 0x80070002 means the system cannot find the specified file. This happens when the path in the /Source parameter is incorrect or the drive letter has changed. Double-check the path and use the full path including the file name. Error 0x80070003 indicates a path syntax error. Remove any trailing spaces or quotation marks from the command.
DISM Source Types: ESD vs WIM vs Windows Update
| Item | ESD | WIM | Windows Update |
|---|---|---|---|
| File format | Encrypted and compressed | Compressed but not encrypted | Streamed download |
| Directly usable by DISM | No, must be exported to WIM | Yes, can be used as /Source | Yes, automatic |
| Requires internet | No | No | Yes |
| Best for offline repair | After conversion | Yes | No |
The table shows that WIM is the most practical source for offline DISM repairs. ESD requires an extra conversion step. Windows Update is convenient but fails when network or service issues exist.
You now know why DISM /RestoreHealth fails when no online source ESD is available on Windows 11. The root cause is a missing or mismatched reference image that DISM cannot retrieve from Windows Update or the local store. By downloading the correct ISO, converting the ESD to WIM, and using the /LimitAccess switch, you can force DISM to complete the repair. For future maintenance, keep a local copy of the install.wim file from your current Windows 11 build. This eliminates dependency on Windows Update and speeds up future DISM operations.