The Deployment Image Servicing and Management (DISM) tool is an essential command-line utility integrated into Windows 10, designed to assist network administrators in preparing, modifying, and repairing system images. This includes the Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). Beyond its primary functions, DISM can also be utilized with the local recovery image to address a variety of system issues. When troubleshooting specific errors, diagnosing boot failures, or tackling performance concerns, the System File Checker (SFC) emerges as a powerful ally, capable of replacing missing or corrupted system files using the recovery image. However, it is important to note that if any system files within the local image are compromised, the SFC command may not execute successfully. In such cases, employing the “install.wim” image file alongside DISM can effectively repair the image, allowing SFC to restore the setup without necessitating a complete operating system reinstallation.
As we look ahead to 2025 and beyond, it becomes increasingly clear that DISM and SFC stand as the premier tools for rejuvenating a malfunctioning computer, transforming it from a state of disrepair to one of optimal functionality—all without the need for reinstallation. Prior to embarking on this repair journey, it is prudent to create a full backup of your system.
How to use DISM to repair image of Windows 10
The DISM command tool is equipped with a suite of features aimed at repairing system images, including “CheckHealth,” “ScanHealth,” and “RestoreHealth.” It is advisable to utilize these commands sequentially. Depending on the nature of the issue, the “RestoreHealth” option can be employed to rectify the locally available image using alternative source files.
DISM command with CheckHealth option
The “CheckHealth” option within DISM serves to identify any corruptions present in the local Windows 10 image. However, it is worth noting that this option does not initiate any repairs. To assess the integrity of your Windows 10 image using DISM, follow these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Input the following command to conduct a quick check and press Enter: DISM /Online /Cleanup-Image /CheckHealth
Upon completion of these steps, the DISM tool will execute and verify any data corruption that may necessitate repair within the local image.
DISM command with ScanHealth option
The “ScanHealth” option performs a more comprehensive scan to determine whether the image has any underlying issues. To check for image problems using the “ScanHealth” option, follow these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Type the following command to execute an advanced DISM scan and press Enter: DISM /Online /Cleanup-Image /ScanHealth
After executing these steps, the scan may take some time to evaluate whether the image requires repairs.
DISM command with RestoreHealth option
In instances where the system image exhibits problems, the “RestoreHealth” option automatically scans and repairs common issues. To rectify Windows 10 local image problems using DISM, adhere to the following steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Input the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth
- Quick note: It is normal for the command to appear unresponsive at times. After a brief period, the process will conclude successfully.
Upon completion of these steps, the DISM tool will connect to the “Windows Update” servers to download and replace any damaged files, if applicable.
Fix problems with DISM using install.wim image
While the Deployment Image Servicing and Management commands are generally reliable, issues may arise when the tool encounters difficulties in replacing damaged files or if the computer lacks an internet connection. In such scenarios, an alternative image can be employed using the “Source” option. Typically, an “install.wim” or “install.esd” file from another device, installation media, or ISO file can be utilized. It is crucial to ensure that the files correspond to the version, edition, and language of the Windows version you are attempting to repair.
Download Windows 10 ISO file
If an alternative file source is needed, the Media Creation Tool can be used to download a fresh copy of Windows 10. To download the ISO file, follow these steps:
- Visit the Microsoft support website.
- Click the Download Now button.
- Double-click the MediaCreationTool_xxxx.exe file to launch the setup.
- Click the Accept button to agree to the terms.
- Select the “Create installation media (USB flash drive, DVD, or ISO file) for another PC” option.
Continue through the prompts to select the ISO file option and designate a destination for saving the Windows 10 ISO file. Once downloaded, you can mount the image and proceed with the DISM tool using the “Source” option to repair the locally stored image on your computer.
Fix Windows 10 recovery image
To run the Deployment Image Servicing and Management tool with an alternate source (install.wim) image, follow these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:Sourcesinstall.wim
In this command, replace “E” with the mount point drive letter as seen in File Explorer.
Fix problems with DISM using ESD image
Should you possess an encrypted “install.esd” image, it is feasible to utilize that image to repair damaged system files on Windows 10. To employ DISM with an “install.esd” image file as the source, follow these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Type the following command to repair the image with an “install.esd” file and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:ESDWindowssourcesinstall.esd
In this command, adjust “C:ESDWindowssources” to reflect the actual path of the “.esd” file if it differs.
Troubleshooting common errors
In the event that the RestoreHealth command fails, various fixes can be attempted based on the specific error encountered:
- Error 0x800f081f: This error indicates that the source files could not be located. Resolve this by executing the DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:sourcesinstall.wim:1 /LimitAccess command.
- Error 87: This suggests that the parameter is incorrect. Verify the command for typographical errors and retry it. Commands are case-insensitive, but spaces must be exact.
- DISM stuck at 20%, 40%, or 80%: Restart the computer and attempt the process again. Running the chkdsk C: /f /r /x command can also help check for disk errors. However, it is important to note that if the command appears stuck, it may simply mean that the tool is actively repairing the system.
- Error 0x800f0906: This error indicates that DISM is having trouble downloading files. Ensure that your internet connection is stable, and consider using a local Windows installation source as outlined above.
For further insights, you can examine the command-line tool log file located at C:WINDOWSLogsDISMdism.log to identify the specific problem. If you remain unable to resolve issues with the DISM command, consider resetting the computer to factory defaults or performing a clean installation of Windows 10.
How to run SFC to repair problems on Windows 10
The aforementioned steps focus on repairing issues with the system image, rather than addressing installation problems with Windows 10. Once the image has been restored to a healthy state, the System File Checker command tool can be utilized to rectify the current setup of Windows 10. To employ the SFC command tool for this purpose, follow these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select Run as administrator.
- Type the following command to repair the installation and press Enter: SFC /scannow
- Quick tip: If errors are detected, it is advisable to run the command multiple times to ensure comprehensive repairs.
Upon completion of these steps, the System File Checker tool will repair system files utilizing the local image files, with log files saved in “%windir%/Logs/CBS/CBS.log” and “%windir%LogsDISMdism.log”, which can be reviewed for additional details regarding the process.
FAQs
Here are some common inquiries regarding the use of DISM on Windows 10:
How do I access Safe Mode on Windows 10?
Safe Mode has limited capabilities. Typically, it is best to run the DISM command tool in normal mode or while in the Windows Recovery Environment.
Does DISM delete files?
No, DISM does not delete your files. Its function is to check and repair system files by replacing those that are damaged or missing.
How do I run DISM on Windows 10?
To run DISM on your computer, open Start, search for Command Prompt (admin), and execute the DISM /Online /Cleanup-Image /RestoreHealth command to scan and repair your installation of Windows 10.
How long does DISM RestoreHealth take?
The duration of the process can vary, taking anywhere from several minutes to over an hour, depending on system speed and the extent of corruption. It is crucial to allow it to complete.
How do I run DISM from the recovery console?
To execute the Deployment Image Servicing and Management tool from the Windows Recovery Environment, access Command Prompt via Troubleshoot > Advanced options. While in Command Prompt, run the DISM /Image:C: /Cleanup-Image /RestoreHealth command, ensuring to replace “C” with the drive letter corresponding to the setup letter, which can be identified using the List Volume command in DiskPart.
More resources
For additional articles, coverage, and answers to common questions about Windows 10 and Windows 11, please explore the following resources: