Operating Systems may break down, files can get corrupt and you may need to fix and restore those files urgently. There are several inbuilt tools on Windows 10 that can scan and fix issues in your files. One such tool is the DISM tool. In this article, we are going to focus on how to use DISM commands. So, let's begin.
Step 1: Connect your Windows 10 installation media to your computer.
Step 2: Press the Windows key and X key simultaneously and open PowerShell.
Step 3: After that, run the command ImagePath "D:\sources\install.wim"
Step 4: Search for the image Index, which matches with your Windows edition.
Step 5: After that, you need to run a command DISM /online /cleanup-image /restorehealth /source:ESD:D:\sources\install.esd:6 /limitaccess
Step 6: Now, wait for the process to get complete.
This is a useful tip that you can use of DISM failed to work on Windows. A lot of users have reported that this method helped them fix DISM source files could not be found error.
Deployment image and servicing management is a tool that helps in fixing component store corruption. This stops SFC from running properly. If SFC fails to work for some reason, then you must use DISM to restore it.
To turn on DISM, below mentioned are the steps that you need to follow.
Step 1: Launch Command Prompt as administrator. For this, you need to right-click on Command Prompt and then select Run as Administrator.
Step 2: Type DISM /Online /Cleanup-Image /RestoreHealth
Step 3: Now, run the command by pressing the enter key.
Step 4: After that, it will perform a scan. The scan is going to take 5-10 minutes to complete.
Step 5: once the scan is done, restart your computer.
Step 1: Mount the Windows 10.iso file.
Step 2: After that, launch PowerShell or Command Prompt as administrator.
Step 3: Check the health of your system by running the commands dism /online /cleanup-image /scanhealth
Step 4: You must not forget to replace X with the letter drive on which the ISO of your Windows 10 is mounted.
Step 5: Restart your PC and scan once again.
The scan health command of DISM does not take more than 5-6 minutes. The main reason why it happens is because of is the comparison between healthy and damaged files. Moreover, it creates a log on your computer.
If you are asking about the exact time, then a lot of sources have mentioned that it takes around 2 minutes but this also depends on the number of damaged files.
What does DISM Restore Health Do?
This command will scan your system for corruption. If there are any damaged files, then it will repair those corrupt files. Please keep in mind that this process is going to take a few hours. However, the time taken depends on the number of corrupt files.
DISCLAIMER : Windows Error is an independent Technical Support Provider. We are not affiliated to any 3rd party brand unless specified. Call vendor for direct Support.