20 March, 2020

DISM online health check

DISM. Chkdsk. SFC. In my work of maintaining computers, I would sometimes come across computers, mostly laptops, that seem to have their Windows not behaving right, or that their Windows Update utility don’t get things right.

I would usually try many times, check a few more things here and there, and one of the checks I do, or the utilities I run, aside from chkdsk and sfc is DISM.

I will dive right in.

DISM has 3 options, which I run in sequence:
1. CheckHealth
2. ScanHealth
3. RestoreHealth

Cmd Window

By the way, the DISM commands are run via the cmd window, or the command prompt, that small text-based normally black background window that is invoked by pressing the Windows key, then typing cmd right away, and it shows in the search bar, which you open with a combination of CTRL + SHIFT + ENTER keys so it opens in elevated mode, having Administrator privilege.

The other way is by clicking on Start, looking for Command Prompt, doing a right-click on your mouse, then selecting Run as administrator. If you don’t see it, then you search for it, then do the right-click thingy, then choose Run as administrator. That is why I save myself the trouble by going the first method of pressing the Windows key, typing cmd, then doing a CTRL-SHIFT-ENTER.

Let’s proceed with DISM commands now.

CheckHealth

The command is DISM /Online /Cleanup-Image /CheckHealth. Type it at the command prompt then press Enter.

You will be notified if there is any data corruption that the utility finds. You then proceed to the next steps.

ScanHealth

At the command prompt, you type DISM /Online /Cleanup-Image /ScanHealth and press Enter. The check runs for a short while in most cases, showing the image version and the progress of the check being done. Once done, you will be notified of corruptions, if any, that the utility finds.

RestoreHealth

Finally, you do a DISM /Online /Cleanup-Image /RestoreHealth, and this is what will attempt to fix any errors that CheckHealth and ScanHealth may have found.

Type DISM /Online /Cleanup-Image /RestoreHealth at the command prompt, press Enter, and you will see the image version and the counter indicating the progress of the operation, and when it finishes, the fixes done, if any.

It doesn’t get much harder than that, supposedly.

DISM. Chkdsk. SFC. These are simple but helpful Windows utilities that I use every now and then, and they help a lot. Hope you find them useful, too!

Till then.


For more info, you can look here:
How to use DISM command tool to repair Windows 10 image

No comments:

Post a Comment