6 Best Solutions To Run DISM Command In Windows

Deployment Image Servicing and Management (DISM) is a command-line utility in Windows 10 that lets administrators build, alter, and repair system images such as Windows Recovery Environment, Windows Setup, and Windows PE. Run the DISM command to fix any error on Windows OS.

Run DISM command

The SFC and DISM utilities are incorporated into Windows systems to assist users in scanning system files and images for corruption or other changes. Then they’ll automatically fix the issues it discovered, such as replacing the corrupted file with the proper one, fixing the underlying Windows system image, etc.

What Is The DISM Tool? How Do I Run DISM Command? 

When you start obtaining errors such as Blue Screen of Death (BSoD), it is a sign that some of the Windows files might be corrupt and need fixing. The same goes for when applications start crashing or specific Windows 10 features stop working.

There are built-in tools in Windows OS that can be used for this, and one of them is SFC (System File Checker Tool). This command scans your Windows and checks for corrupt files.

If any corrupt files are found, the SFC tool will try to replace them. However, sometimes corrupt files can even affect the SFC tool. Whenever you cannot conduct an SFC scan, it’s time to use DISM to fix any errors.

When do I need To Run DISM Command?

You begin to receive problems such as the Blue Screen of Death (BSOD), or your programs begin to crash. Certain Windows 10 capabilities stop operating, which indicates missing, damaged, or corrupted system files.

To Scan And Restore Missing Corrupted System Files, I Recommend Using The System File Checker Tool (SFC /scannow). If any system files are missing or corrupted, the SFC software will repair them from a specific location on %WinDir%System32/dllcache.

%WinDir%

However, you may see that the system file checker discovered some faulty files but could not repair them. Windows Resource Protection located faulty files but was unable to repair some of them, and so on.

To solve a problem like this, We use the DISM command line to repair the system image and allow the System File Checker Utility to complete its task.

Methods To Use DISM To Repair Image Of Windows 10

  1. DISM Command With CheckHealth Option
  2. DISM Command With Restorehealth Option
  3. DISM Command With Scanhealth Option
  4. Repair Windows With DISM Using Install.Wim Image
  5. Run DISM With Source Options
  6. Run System File Checker Utility

1. DISM Command With CheckHealth Option

The DISM tool’s CheckHealth option allows you to identify any corruptions in the local Windows 10 image. The choice, however, does not do any repairs.

Follow these methods to examine the Windows 10 image for DISM issues:

  • Go to the Start Menu.
  • Right-click the top result in the search for Command Prompt and choose Run as administrator.
  • To do a quick check, type the following command and hit Enter:
    • DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /CheckHealth
  • The Deployment Image Servicing and Management program will run after you finish the procedures and review for any data corruption that needs to be fixed.
  • To Run DISM Command in a different mode keep reading the next methods.

2. DISM Command With Restorehealth Option

Use DISM with RestoreHealth to automatically check and repair common issues if there are issues with the system image.

Follow these methods to utilize the DISM command tool to fix Windows image problems:

  • Go to the Start Menu.
  • Right-click the top result in the search for Command Prompt and choose Run as administrator.
  • To restore the Windows 10 image, use the following command and press Enter.
    • DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth
  • This is standard behavior if the command appears to be stuck. The process will be completed successfully after a few minutes.
  • After you’ve finished the steps, the utility will connect to Windows Update and download and replace any damaged files (as necessary).
  • To Run DISM Command in a different mode keep reading the next methods.

3. DISM Command With Scanhealth Option

The DISM tool’s CheckHealth option allows you to identify any corruptions in the local Windows 10 image. The choice, however, does not do any repairs.

Follow these methods to examine the Windows 10 image for DISM issues:

  • Go to the Start Menu.
  • Right-click the top result in the search for Command Prompt and choose Run as administrator.
  • To do a quick check, type the following command and hit Enter:
    • DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /ScanHealth
  • The Deployment Image Servicing and Management program will run after you finish the procedures and check for any file corruption that needs to be fixed.
  • To Run DISM Command in a different mode keep reading the next methods.

4. Repair Windows With DISM Using Install.Wim Image

You can utilize an “install.wim” or “install.esd” file, bootable install media, or a Windows 10 ISO file from another device. All you need to do now is double-check that the files match the version, edition, and language of the Windows 10 version you’re trying to repair.

Download the ISO image of Windows OS

  • If you need to use a different file source, you should obtain a fresh copy of Windows 11 using the Media Creation Tool.
  • Follow these methods to get the Windows 11 ISO file:
  • Go to the Microsoft support page.
  • To get the utility, click the Download Now button.
get the Windows 11 ISO file
  • To run the setup, double-click the MediaCreationToolxxxx.exe file.
  • To accept the terms, click the Accept button.
  • Create installation media for another PC or device (USB flash drive, DVD, or ISO file).
  • Select the ISO file option after selecting the language, architecture, and edition.
  • Choose a location to save the Windows 10 ISO file.
  • Select the Save option.
  • To open the file location in File Explorer, click the link.
  • Finish by pressing the Finish button.

Fix the recovery image in Windows 10

Follow these steps to run the Deployment Image Servicing and Management tool using an alternate source (install.wim) image:

  • Use the Run as administrator option in Command Prompt.
  • To restore the Windows 10 image, use the following command and press Enter.
    • DISM /Online /Cleanup-Image /RestoreHealth /Source:G:\Sources\install.wim
  • Replace “G” with the ISO mount point drive letter in File Explorer in the command.
  • The command will scan and correct the faults using the “install.wim” file you supplied as an alternate source once you’ve completed the instructions.
  • To mount the image, double-click the Windows.iso file.
  • Confirm the drive for the mount point in the “This PC” section.
  • After completing the procedures, use the DISM tool to repair the local image using the “Source” option.

Using an ESD image to fix DISM issues

It’s feasible to utilize an encrypted “install.esd” image to fix the damaged data on Windows 10.

Follow these procedures to fix Windows 10 using DISM and an “install.esd” image file as the source:

  • Use the Run as administrator option in Command Prompt.
  • Type the following command and press Enter to fix the image with an “install.esd” file.
  • DISM /Online /Cleanup-Image /RestoreHealth /Source: C:\ESD\Windows\sources\install.esdIn
  • . Replace C:ESDWindowssources with the path to the “.esd” file’s location.
  • To Run DISM Command in a different mode keep reading the next methods.

5. Run DISM With Source Options

To run DISM with source options, first download Windows 10 ISO, 32 Bit Or 64 Bit, with the same version and edition as your present Windows 10 installation. After the download is complete, right-click the ISO file, select Mount, and make a note of the drive path.

  • Open the Command prompt once more. Then type the command as an administrator.
    • DISM /Online /Cleanup-Image /RestoreHealth
  • Replace D with the letter drive that contains your Windows 10 ISO.
  • This will repair the Windows image using the known-good files contained in the install.wim file.
  • It uses the Windows 10 installation disc instead of trying to download the essential files for repair through Windows Update.
  • Wait till the Scanning Process is finished. DISM will create a log file in %windir%/Logs/CBS/CBS.log after completing the process.
  • It records any issues that the tool discovers or resolves. Then, to get a fresh start, restart your computer.
  • To Run DISM Command in a different mode keep reading the next methods.

6. Run System File Checker Utility

After you run the DISM (Deployment Imaging and Servicing Management) Tool will repair any corrupted files that the sfc/scannow command couldn’t fix.

  • Open the Command prompt once more. Log in as an administrator to launch System File Checker Utility and type the command SFC /scannow.
Run System File Checker Utility
  • This will scan for missing or corrupted system files and repair them.
  • This System File Checker Utility will successfully scan and restore missing, damaged, and corrupted system files using a good copy from a specific Cache folder located in %WinDir%/System32/dllcache.
  • Wait until the scanning and repair process is finished. Restart the Windows machine after that.
  • You’ve successfully repaired missing or corrupted system files with the SFC software or the DISM command-line tool.
  • To Run DISM Command in a different mode keep reading the next methods.

Conclusion

The DISM is a command-line utility included with Windows that allows users to scan for system damage and restore images or system files as needed. What can you do with the DISM tool? How can you fix your image or system files using the DISM command? All of these topics in detail are discussed above. Use this extraordinary tool to fix any issue with the Windows Operating System.

FAQS

How Do I Run DISM Commands?

Start the program. Right-click the top result in the search for Command Prompt and choose Run as administrator. To run an advanced DISM scan, type the following command and press Enter: DISM /Online /Cleanup-Image /ScanHealth.

What Is The DISM Command For?

The command-line utility Deployment Image Servicing and Management (DISM.exe) can be used to service and prepare Windows images, such as those used for Windows PE, Windows Recovery Environment (Windows RE), and Windows Setup. A Windows image (. wim) file or a virtual hard disc can be serviced with DISM (. vhd )

Which Is Better, SFC Or DISM?

While CHKDSK examines your hard drive and SFC analyses your system files, DISM finds and resolves faulty files in the Windows system image’s component store, allowing SFC to function properly. After the scan and repairs are finished, restart your computer and run SFC to replace any corrupt or missing system files.

Can DISM Fix Windows Update?

If there are corruption or BSOD errors, Windows updates and service packs may fail to install. For example, if a system file is damaged, an update may fail to install. The DISM (System Update Readiness) utility may be able to assist you in resolving various Windows corruption issues.