There is a command-line utility known as Deployment Image Servicing and Management (DISM) on Windows 10. This new tool is installed by default on Microsoft’s newest operating system. It is used to repair and prepare Windows images such as the Windows Recovery Environment, Windows Setup, and Windows PE. Besides, Deployment Image Servicing and Management is used to fix the recovery image within an installation of the operating system and even to service a virtual hard disk.

There are 3 options you can use with DISM to repair the Windows image on your PC. They include CheckHealth, ScanHealth, and RestoreHealh. Here is how to use. Let’s check out now!

Use the DISM command with RestoreHealth 

You can use this way to scan the Windows image for any corruption as well as to perform a repair automatically. To run the command, you follow the steps below:

Step 1: Launch the Power User menu by using the Windows key + X keyboard shortcut and then choose Command Prompt (Admin).

Step 2: Type the following command and hit Enter:

DISM /Online /Cleanup-Image /RestoreHealth

In Windows 10, the RestoreHealth switch can take up to 20 minutes to complete the process.

Use the DISM command with ScanHealth 

If you use this way, it can take up to 10 minutes to complete the process. To run the command, you follow the steps below:

Step 1: Launch the Power User menu by using the Windows key + X keyboard shortcut  and then choose Command Prompt (Admin).

Step 2: Type the following command and hit Enter:

DISM /Online /Cleanup-Image /ScanHealth

Use the DISM command with CheckHealth

This command can only be used to see if corruption exists, but it doesn’t perform any repairs. To run the command, you follow the steps below:

Step 1: Launch the Power User menu by using the Windows key + X keyboard shortcut and then choose Command Prompt (Admin).

Step 2: Type the following command and hit Enter:

DISM /Online /Cleanup-Image /CheckHealth