DISM command-line utility to repair a Windows Image

Using DISM with the CheckHealth option


Verify whether any corruption has been detected. This command can only be used to see if corruption exists, but it doesn't perform any repairs.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /CheckHealth


Using DISM with the ScanHealth option


Scan the Windows image for any corruption. Unlike the /CheckHealth, the /ScanHealth switch can take up to 10 minutes to complete the process.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /ScanHealth


Using DISM with the RestoreHealth option


Scan the Windows image for any corruption and to perform a repair automatically. Unlike the /ScanHealth switch, the /RestoreHealth switch can take up to 20 minutes to complete the process.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /RestoreHealth