How to Use DISM Command on Windows Properly

If you want to know how to use the DISM command on Windows 11 or 10 and also know a few more key information about it, go through this article.

Various system errors may appear for missing or corrupted files. To resolve it, you may need to run DISM.exe. However, to use DISM tool, you will need to follow certain important steps.

What is the DISM tool?

The full form of DISM is the Deployment Image Service and Management Tool. It is a command-line tool in Windows used for image deployment, servicing, and repair. It can add or remove packages, enable features, and repair Windows images.

To resolve system file-related issues on Windows 11, 10, or even any earlier versions, this is a very useful component that power users often use.

How can I run the DISM command?

To use the DISM tool, you must run specific commands. These are

1. Run the DISM CheckHealth Command 

The CheckHeatlh option helps to check the image to see whether corruption has been detected. To run it, follow these steps:

  1. Press Win + X on the keyboard.
  2. Click on Terminal (Admin).
    Opening terminal windows by pressing win x
  3. Type the following command and press Enter: DISM /Online /Cleanup-Image /CheckHealth
    terminal DISM scan windows 11

Now, wait for a while. Once the process is done, you will see if any violation is detected.

2. ScanHealth Option

This is similar to the previous one but a bit more powerful one to detect deep problems with the system components. To run this command, follow these steps:

  1. Open the Terminal (Admin) like before.
  2. Type the following command and hit Enter: DISM /Online /Cleanup-Image /ScanHealth
    DISM Online Cleanup Image ScanHealth terminal

Like the previous command, it also may take some time to finish and show you the output.

3. Restore Health Option

To automatically scan and repair problems on the Windows system, the restore health DISM command is essential. Here are the steps to run it:

  1. Open the Terminal (Admin) again.
  2. Type the following command and hit Enter: DISM /Online /Cleanup-Image /RestoreHealth 
    DISM Online Cleanup Image RestoreHealth terminal

If this command can finish the process successfully, all problems are most probably solved. However, for even more advanced cases, you may need to run the DISM command a bit differently. For more details, follow the next section.

Run the DISM Command Using a Bootable Windows Disk

You also can use a bootable media to run the DISM command more effectively. To do it, follow these steps:

  1. Insert the bootable Windows media on your PC.
  2. Open the Terminal with administrative rights like before.
  3. Paste the following command and hit Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.wim 
    DISM Online Cleanup Image RestoreHealth SourceESourcesinstall.wim terminal

Note: In my case, the bootable media drive letter was E. So, I used “E:\Sources,” in the command. It may be different in your case.

  1. If the above command doesn’t work, run the following one: DISM /Online /Cleanup-Image /RestoreHealth /Source:E\Sources\install.wim /LimitAccess
    DISM Online Cleanup Image RestoreHealth SourceESourcesinstall.wim LimitAccess TERMINAL

The above commands will make the Deployment Image Servicing and Management tool scan and repair the system file problems using the “.wim” file from the Windows installation media.


I hope this article has helped to learn how to run or use the DISM command on a modern Windows 11 or 10 PC. Do you have any questions on this? Feel free to ask in the comment box.