The CheckHealth option with the DISM tool allows you to determine any corruptions inside the local Windows 10 image. However, the option does not perform any repairs.
To check the Windows 10 image for issues with DISM, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to perform a quick check and press Enter:
DISM /Online /Cleanup-Image /CheckHealth
Once you complete the steps, the Deployment Image Servicing and Management tool will run and verify any data corruption that may require fixing.
The ScanHealth option does a more advanced scan to find out whether the image has any problems.
To check image problems with the ScanHealth option, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to perform an advanced DISM scan and press Enter:
DISM /Online /Cleanup-Image /ScanHealth
After you complete the steps, the scan may take several minutes to check if the Windows 10 image needs repairing.
If there are problems with the system image, use DISM with the RestoreHealth option to automatically scan and repair common issues.
To repair Windows 10 image problems with the DISM command tool, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the Windows 10 image and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
Quick note: If the command appears stuck, this is normal behavior. After a few minutes, the process will complete successfully.
Once you complete the steps, the tool will connect to Windows Update online to download and replace damaged files (as necessary).
The Deployment Image Servicing and Management command usually doesn't cause issues. However, if the tool finds problems replacing the damaged files or the computer isn't connected to the internet, you will need to provide another image using the Source option. Typically, you can use an "install.wim" or "install.esd" file from another device, bootable install media, or Windows 10 ISO file. You only need to make sure that the files match the version, edition, and language of the version of Windows 10 you are trying to fix.
If you need to use another file source, it is recommended to use the Media Creation Tool to download a fresh copy of Windows 10.
To download the ISO file of Windows 10, use these steps:
- Open this Microsoft support website. https://www.microsoft.com/en-us/software-download/windows11
- Click the Download tool now button.
- Double-click the MediaCreationToolxxxx.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.
- Click the Next button.
- Click the Next button again.
- Select the ISO file option.
- Click the Next button.
- Select the destination to store the Windows 10 ISO file.
- Click the Save button.
- Click the link to open the file location with File Explorer.
- Click the Finish button.
- Double-click the Windows.iso file to mount the image.
- Under the "This PC" section, confirm the drive letter for the mount poing.
After you complete the steps, you can continue with the DISM tool using the "Source" option to repair the local image.
To run Deployment Image Servicing and Management tool with an alternate source (install.wim) image, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the Windows 10 image and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.wim
In the command, replace "F" with the ISO mount point drive letter in File Explorer.
- (Optional) Type the following command to limit the use of Windows Update and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:E\Sources\install.wim /LimitAccess
- (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:E:\Sources\install.wim:1 /LimitAccess
In the command, change E:\Sources
, for the path to the "install.wim" file.
Once you complete the steps, the command will scan and repair the problems using the "install.wim" file you specified as the alternative source.
If you have an encrypted "install.esd" image, it's possible to use it to repair the damaged files on Windows 10.
To use DISM with an "install.esd" image file as the source to repair Windows 10, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the image with an "install.esd" file and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd
In the command, change C:\ESD\Windows\sources
with the path to the location of the
".esd" file (if different).
- (Optional) Type the following command to limit the use of Windows Update and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd /LimitAccess
- (Optional) Type the following variant of the previous command to accomplish the same task and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\ESD\Windows\sources\install.esd:1 /LimitAccess
- (Optinal) Type the following command to use an install.esd file located in another drive and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.esd
In the command, replace E:\Sources
with the path to the location of the "install.esd"
file.
After you complete the steps, the tool will repair the damaged files using the files included in the "install.esd" image.
The above instructions will resolve problems with the system image, not the issues with the Windows 10 installation. After restoring the image to a healthy state, use the System File Checker (SFC) command tool to repair the current setup.
To use the SFC command tool to repair Windows 10 problems, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the installation and press Enter:
SFC /scannow
Quick tip: If errors are found, you may want to run the command around three times to ensure that everything was fixed correctly.
Once you complete the steps, the System File Checker tool will repair the system files using
the local image files, and the log files will be saved on %windir%/Logs/CBS/CBS.log
and
%windir%\Logs\DISM\dism.log
, which you can view to get more details about the process.