sodcalculator

10 Tech How-To

Fix 08007007e DISM RestoreHealth Errors

Guide 10-32223 · Updated · Step by step

This guide walks you through the most common causes of the 0x80070007e error when running DISM /Online /Cleanup-Image /RestoreHealth on Windows 10 or 11, and gives you step-by-step fixes to get the command working. The error usually appears because DISM cannot access the Windows Update files it needs, or because the system files are locked. You’ll need administrative access and a stable internet connection.

What You’ll Need

  • An account with administrator privileges.
  • A stable internet connection (for online repair).
  • Optional: A Windows installation USB or ISO (for offline repair).

Step-by-Step

  1. Run Command Prompt as Administrator. Press Windows + X and select Terminal (Admin) or Command Prompt (Admin). Confirm any UAC prompt.
  2. Check your Windows version. Type winver and press Enter. Note the version and build number (e.g., 23H2, 22H2). You’ll need this later if you use an offline source.
  3. Run SFC first. Although you came for DISM, a corrupted system file can block DISM. Type sfc /scannow and press Enter. Let it finish. If it finds issues, reboot and try DISM again.
  4. Clear the Windows Update cache. Stop the relevant services by typing these commands one at a time, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    Then rename the SoftwareDistribution folder:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
  5. Retry DISM with the standard command. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Wait for it to complete (might take 10–30 minutes). If it still gives 0x80070007e, continue.
  6. Use a different source. If online repair fails, use a Windows ISO or USB. Mount the ISO (double-click it) or insert the USB, and note the drive letter (e.g., E:). Then run:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim /LimitAccess
    If the install media uses install.esd instead of install.wim, you need to find the index number first. Type DISM /Get-WimInfo /WimFile:E:\sources\install.esd to list editions, then use the index of your edition (usually 1 for Home/Pro). The command becomes:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.esd:1 /LimitAccess
  7. Check disk errors. Run chkdsk /f /r and press Y to schedule it, then reboot. After the check, try DISM again.
  8. Perform a repair upgrade. If all else fails, download the Windows 11 Installation Assistant or the Media Creation Tool from Microsoft’s official site, run it, and choose “Upgrade this PC now.” This reinstalls Windows while keeping your files and apps. After that, DISM should work.

Common Mistakes

  • Running DISM without admin rights. The command will fail with a different error, but it’s a common oversight.
  • Skipping SFC. SFC and DISM work together; running DISM first can sometimes mask the real problem.
  • Using the wrong install.wim index. If you use an .esd file without specifying the index, DISM may throw an error.
  • Not clearing the SoftwareDistribution folder. A corrupted update cache is a frequent cause of 0x80070007e.
  • Interrupting the DISM process. Let it finish, even if it seems stuck. Closing the window can corrupt the image further.

Tips

  • Use the /LogPath parameter. Add /LogPath:C:\DISM.log to your command to get a detailed log. This helps if you need to research further.
  • Keep Windows Update healthy. Regularly install updates and run SFC/DISM monthly to prevent corruption.
  • Use a wired connection. A stable internet connection reduces the chance of download errors during online repair.
  • Create a restore point. Before running DISM or a repair upgrade, create a system restore point so you can roll back if something goes wrong.

Troubleshooting

If the error persists after trying the steps above, consider these additional checks:

  • Check the CBS log. After a failed DISM, look at C:\Windows\Logs\CBS\CBS.log for the exact error. Search for “0x80070007e” or “HRESULT” to find the root cause.
  • Verify the source media. If using an ISO, make sure it’s not corrupted. Check its SHA-1 hash against Microsoft’s official values.
  • Disable third-party antivirus temporarily. Some security software can interfere with DISM’s access to system files. Disable it (or its real-time protection) and try again.
  • Boot into Safe Mode with Networking. This loads only essential drivers. Run DISM from Safe Mode to rule out driver conflicts.
  • Use the Windows Media Creation Tool to create a fresh ISO. Sometimes the existing ISO is the problem.
  • If DISM still fails, consider a clean install. Back up your data, then use the “Reset this PC” feature (Settings > System > Recovery) to reinstall Windows while keeping your files. This is a last resort but often resolves persistent corruption.

Frequently Asked Questions

What does error 0x80070007e mean?

It’s a generic “The specified module could not be found” error. In the context of DISM, it usually means the command cannot locate the files it needs (like the Windows Update source) or a required component is missing.

Can I run DISM without an internet connection?

Yes, but you must provide a local source (like a Windows ISO). The /Source parameter lets you point to a mounted ISO or USB drive.

How long does DISM RestoreHealth take?

It can take anywhere from 10 minutes to over an hour, depending on your system speed and whether it needs to download files. Let it run uninterrupted.

Will DISM delete my personal files?

No. DISM only repairs system image files. Your documents, photos, and apps are not touched.

What’s the difference between SFC and DISM?

SFC (System File Checker) scans and repairs protected system files. DISM repairs the underlying Windows system image (the store that SFC uses as a source). Running DISM first can fix SFC’s inability to repair files.

Is it safe to use a repair upgrade?

Yes, if you download the tool from Microsoft’s official website. It reinstalls Windows, keeps your files and installed apps, and often resolves deep corruption. Always back up important data first.

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

The whole Tech How-To bed →