Many Windows 10 users have reported error code 0x800f0906 when running the following command from the command line with elevated privileges: Dism.exe / Online / Cleanup-Image / RestoreHealth
The Deployment Image Maintenance and Management (DISM) command line utility is an incredibly useful little tool that you can use to maintain and restore a Windows installation. A DISM.exe command line crash can be a pretty big problem, especially when it occurs when you need the utility to do your tasks right away. If the DISM command line tool gives an error with the code 0x800f0906, the corresponding error message will indicate that the source files cannot be loaded or the files needed for memory recovery cannot be found.
In most cases, this problem is caused by a corrupted or in some cases one or more of the latest Windows updates available for the vulnerable computer that are not installed. Fortunately, there are many things you can do to solve this problem. Here are the most effective solutions you can try to solve this problem and perform a successful repair using the DISM tool:
Check your date and time settings
Make sure that the date and time on your computer (or phone) is correct. To do this
- Press the Windows Image + R keys at the same time to open the Run command window.
- Type Control Panel and press Enter.
- open the date and time.
- Tap Change date and time. Set the current date/time/year and tap OK.
- Tap the Change Time Zone button. Set the current time zone and tap OK.
- Select the Internet Time tab, then tap Change Settings. Select the “Synchronize with an Internet time server” checkbox, and then select a time server from the list (for example, time.windows.com). When you are finished, click “Update Now”. When the time is updated, double-click OK to close any open windows.
- Restart your computer and run the DISM / Online / Cleanup-Image / RestoreHealth command again.
Recover a corrupted Windows system image
After doing a little research on this error, I found that the following solution can work in this situation. You should reset the SoftwareDistribution and Catroot2 folders. The troubleshooting looks like this:
- open an administrative command prompt.
- Copy the following code and right-click to paste it into the command line:
- wuauserv net stop
- CD% systemroot% \ SoftwareDistribution
- ren Download Download.old
- Clean start wuauserv
- Clean stop bits
- Network boot bits
- cryptsvc net stop
- cd% systemroot% \ system32
- ren catroot2 catroot2old
- cryptsvc net boot
- Finish! Close the command line. Restart DISM / Online / Cleanup-Image / RestoreHealth and try again, this time without getting an error code.
Install any Windows updates available for your computer
If you are having this problem because one or more of the Windows updates available for your computer are not installed, the solution to this problem is simply to install all of the Windows updates available for your computer. To do this, you need to:
- Open the start menu.
- Click Settings.
- Click Update and security.
- In the left pane, click Windows Update.
- In the right pane, click Check for updates.
- Wait while Windows Update checks for and downloads any available updates for your computer.
- If any updates are available for your computer, download and install them.
Please follow the instructions, and if the problem persists, come back and we’ll be happy to help!