“DISM.exe /Online /Cleanup-image /Restorehealth” is a Dism command that runs a scan for corruption and repairs problems that it finds with your operating system. In this article, we will discuss the whole of the DISM.exe /Online /Cleanup-image /Restorehealth commands.
DISM means?
The DISM (Deployment Image Servicing and Management) tool is manipulated to scan and restore potential issues within the windows that may impact an operating system. This tool is usually used to manage both Windows Online and Offline Images.
What is DISM.exe?
It is a Windows command-line tool that always targets your chosen area. You must either specify the /online or /Image switch. DISM.exe will not foresee a path to an offline image.
What are Image switch and Online switch?
As we have already told you, you must specify the /online or /Image switch. So, if you consider the image switch, the DISM tool will expect you to restrict the path to the root directory of an offline Windows image. On the other hand, the DISM.exe /Online switch means you ask DISM to target the operating system instead of an offline image.
What is DISM.exe /Cleanup-Image?
In this section, we will explain the Cleanup-Image switch. One of the command-line options for the DISM.exe /Online switch is the Cleanup-Image switch. The cleanup-Image switch performs cleanup and recovery operations on the running operating system. In other words, when you run the command “DISM.exe/ Online/ Cleanup-image”, you are asking Deployment Image Servicing and Management (DSIM) tool to:
- Cleanup and repair operations on the system.
- Target running operating system.
What is the Restorehealth switch?
It is the last switch in the “DISM.exe /Online /Cleanup-image /Restorehealth” command. It attempts to repair the corrupted scanned files automatically from the operating network.
What Does The “DISM.exe /Online /Cleanup-image /Restorehealth” Command Do?
Three switches are available in the “DISM.exe /Online /Cleanup-image /Restorehealth” command line. All three switches perform different tasks in an operating system.
- The online switch requires DISM.exe to target the running operating system rather than the offline Windows image.
- The Cleanup-Image switch has to go for cleaning and recovery operations on your system.
- And the Restorehealth switch scans the ongoing operation on the operating system for corrupt files and attempts to restore them.
How to Check Your Operating System Health by Using the DSIM.exe Command?
The DISM.exe tool helps you to find any problems in your operating system. If you have issues with your Windows operating system, use the /ScanHealth switch to perform an advanced scan. Here’s the Command below to perform this switch.
- DISM /online /Cleanup-Image /ScanHealth
How to Run DISM.exe from Windows 10 Recovery Mode?
You can boot your Windows 10 computer by using the DISM.exe tool. Follow our given steps below.
- First, download the Windows 10 ISO file and burn it into a DVD.
- Now, boot your PC using the DVD.
- When your PC boots to the screen, press any key to boot into the Windows 10 DVD.
- Click next on the Windows Setup screen.
- Then click Repair your computer.
- After that, click on the Troubleshoot option.
- Now, click on the Command Prompt.
- The Command Prompt will load.
Make sure that we need to extract the file before using the “DISM.exe /Online /Cleanup-image /Restorehealth” command. We need to extract the file using a WIM file. Here’s how you can extract the OS WIM file.
- You need to determine the drive your ISO image was mounted on first. However, it depends on the number of drives on your computer. We recommend you try D, E drive, and so on.
- Enter the drive name, followed by a colon after your drive name, and press Enter D:
- After that, type Dir and press the Enter key. DIR
Observe possible drive letters until you find the one with folders, boot, EFI, sources, and support. This is the drive your Windows 10 ISO is mounted.
- Next, you have to find out the index number of the Windows 10 edition you would like to use.
To do this, follow the Command below:
CD sources
- Type this command and press the Enter key.
dism /Get-WimInfo /WimFile:install.esd
After that, Command Prompts load, and you can repair your Windows 10 computer.
Leave a Reply