How to use DISM command tool to repair Windows 10 image (2024)

How to use DISM command tool to repair Windows 10 image (1)

Jump To:

  • DISM
  • SFC

Deployment Image Servicing and Management (DISM) is a command-line tool built into Windows 10 that allows network administrators to prepare, modify, and repair system images, including Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). However, you can also use the tool with the local recovery image to fix most system problems.

When you try to fix a specific error, figure out why the computer stopped booting correctly, or resolve performance problems, the System File Checker (SFC) is one of the best to replace missing or corrupted system files using the recovery image. The only caveat with this approach is that if one or more system files in the local image are damaged, the SFC command won't work. In this scenario, you can use the "install.wim" image file with DISM to repair the image and then use the SFC tool to fix the setup without reinstalling the operating system.

In this how-to guide, I will show you how, in 2024 and beyond, the DISM and SFC are the best tools for restoring a computer from a broken to a healthy working state without reinstallation.

How to use DISM to repair image of Windows 10

The DISM command tool includes multiple features to repair a system image, including "CheckHealth," "ScanHealth," and "RestoreHealth," and you want to use them in that order. Also, depending on the issue, you can use the "RestoreHealth" option to fix the locally available image using different source files.

Warning: The commands outlined in this guide are non-destructive, but since you will be making system changes, it is still recommended to create a temporary full backup before proceeding.

DISM command with CheckHealth option

The "CheckHealth" option with the DISM determines any corruptions inside the local Windows 10 image. However, this option does not perform any sort of repair.

To check the image of Windows 10 for issues with DISM, use these steps:

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform a quick check and press Enter: DISM /Online /Cleanup-Image /CheckHealth

Once you complete the steps, the DISM tool will run and verify any data corruption that may require fixing inside the local image.

DISM command with ScanHealth option

The "ScanHealth" option performs a more advanced scan to find out whether the image has any issues.

To check image problems with the "ScanHealth" option, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to perform an advanced DISM scan and press Enter: DISM /Online /Cleanup-Image /ScanHealth

How to use DISM command tool to repair Windows 10 image (3)

After completing the steps, the scan may take some time to check whether the image needs fixing.

DISM command with RestoreHealth option

If the system image has problems, use DISM with the "RestoreHealth" option to scan and repair common issues automatically.

To repair Windows 10 local image problems with DISM, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth
  • Quick note: It's normal if the command appears stuck. After a few moments, the process will be completed successfully.

How to use DISM command tool to repair Windows 10 image (4)

Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the "Windows Update" servers to download and replace damaged files (if applicable).

Fix problems with DISM using install.wim image

The Deployment Image Servicing and Management commands typically don't cause issues. However, if the tool finds problems replacing the damaged files or the computer doesn't have an internet connection, you can use another image using the "Source" option. Usually, you can use an "install.wim" or "install.esd" file from another device, install media, or ISO file. You only need to ensure the files match the version, edition, and language of the version you are trying to fix.

Download Windows 10 ISO file

If you need another file source, use the Media Creation Tool to download a fresh copy of Windows 10.

To download the ISO file of Windows 10, use these steps:

  1. Open this Microsoft support website.
  2. Click the Download Now button.
  3. Double-click the MediaCreationToolxxxx.exe file to launch the setup.
  4. Click the Accept button to agree to the terms.
  5. Select the "Create installation media (USB flash drive, DVD, or ISO file) for another PC" option.

How to use DISM command tool to repair Windows 10 image (5)

  1. Click the Next button.
  2. Click the Next button again.

How to use DISM command tool to repair Windows 10 image (6)

  1. Select the ISO file option.
  1. Click the Next button.
  2. Select the destination to store the Windows 10 ISO file.
  3. Click the Save button.
  4. Click the link to open the file location on File Explorer.

How to use DISM command tool to repair Windows 10 image (8)

  1. Click the Finish button.
  2. Double-click the Windows.iso file to mount the image.
  3. Confirm the drive letter for the mount point of the ISO file under the "This PC" section.

How to use DISM command tool to repair Windows 10 image (9)

After you complete the steps, continue with the DISM tool using the "Source" option to repair the image locally stored on the computer.

Fix Windows 10 recovery image

To run the Deployment Image Servicing and Management tool with an alternate source (install.wim) image, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.wim

In the command, replace "E" with the mount point drive letter on File Explorer.

How to use DISM command tool to repair Windows 10 image (10)

  1. (Optional) Type the following command to limit the use of Windows Update and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:G\Sources\install.wim /LimitAccess
  2. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:G:\Sources\install.wim:1 /LimitAccess

In the command, change "G:\Sources," for the path to the "install.wim" file.

Once you complete the steps, the command will scan and repair the problems using the "install.wim" file you specified as the alternative source.

Fix problems with DISM using ESD image

In case you have an encrypted "install.esd" image, it's possible to use that image to repair the damaged system files on Windows 10.

To use DISM with an "install.esd" image file as the source to repair Windows 10, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image with an "install.esd" file and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd

In the command, change "C:\ESD\Windows\sources" with the path to the location of the ".esd" file (if different).

How to use DISM command tool to repair Windows 10 image (11)

  1. (Optional) Type the following command to limit the use of Windows Update and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd /LimitAccess
  2. (Optional) Type the following variant of the previous command to accomplish the same task and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\ESD\Windows\sources\install.esd:1 /LimitAccess
  3. (Optional) Type the following command to use an install.esd file located in another drive and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.esd

In the command, replace "E:\Sources" with the path to the location of the "install.esd" file.

After you complete the steps, the tool will repair the damaged files using the files included in the "install.esd" image.

How to run SFC to repair problems on Windows 10

The above steps are meant to repair issues with the system image, not the problems with the installation of Windows 10. After restoring the image to a healthy state, you can use the System File Checker command tool to repair the current setup of Windows 10.

To use the SFC command tool to repair system problems, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the installation and press Enter: SFC /scannow
  • Quick tip: If errors are found, you may want to run the command around three times to ensure that everything was fixed correctly.

How to use DISM command tool to repair Windows 10 image (12)

Once you complete the steps, the System File Checker tool will repair the system files using the local image files, and the log files will be saved on "%windir%/Logs/CBS/CBS.log" and "%windir%\Logs\DISM\dism.log," which you can view to get more details about the process.

You can use these instructions to learn more ways to use the SFC tool to fix problems on Windows 10.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

  • Windows 11 on Windows Central — All you need to know
  • Windows 10 on Windows Central — All you need to know
How to use DISM command tool to repair Windows 10 image (13)

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

How to use DISM command tool to repair Windows 10 image (2024)

FAQs

How to use DISM to repair image of Windows 10? ›

To repair Windows 10 local image problems with DISM, use these steps:
  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth.
Jul 12, 2024

Does Dism fix corrupt files? ›

In short, DISM is not a complete reinstallation of Windows; instead, it finds critical core files required to run and gather information, then upgrades or repairs any files that are corrupted or out-of-date.

How to repair your system files using DISM and sfc scannow? ›

You can repair Windows 10 with CMD using the SFC and DISM commands.
  1. Entering the CMD windows.
  2. Type in sfc /scannow, and press the Enter key. ...
  3. If the SFC command doesn't work. ...
  4. Type in DISM /Online /Cleanup-Image /ScanHealth to scan the corruptions of Windows images.
May 30, 2024

What are the helpful DISM commands? ›

What is the correct order of DISM and sfc commands to fix...
  • Dism.exe /online /Cleanup-Image /checkhealth.
  • Dism.exe /online /Cleanup-Image /scanhealth.
  • Dism.exe /online /Cleanup-Image /Restorehealth.
  • sfc /scannow.
  • Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore.
Jul 25, 2020

How to fix corrupted files in Windows 10? ›

How to Fix Corrupted Files
  1. Perform a check disk on the hard drive. Running this tool scans the hard drive and attempts to recover bad sectors. ...
  2. Use the CHKDSK command. This is the command version of the tool we looked at above. ...
  3. Use the SFC /scannow command. ...
  4. Change the file format. ...
  5. Use file repair software.
Jun 12, 2024

How to repair disk using Command Prompt? ›

Open the Command Prompt by typing cmd into the desktop search field and selecting Run as administrator. Type the command chkdsk C: /f. If the drive you're trying to repair isn't the C drive, replace “C” with the letter of the relevant drive.

What command fixes corrupt files? ›

The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system folder.

Why would DISM fail? ›

DISM error, like no operation was performed error, is related to Windows Update Service. When it begins to update but the service doesn't support and disturbs the normal operation of the system, a DISM error occurs. Therefore, you can try to reset Windows Update Service to fix the issue.

Does CHKDSK fix corrupt files? ›

chkdsk /f fixes any structural issues with the file system and directory, correcting inconsistencies between the two. chkdsk /r searches for corrupted parts of the physical hard drive (while also running chkdsk /f) and tries to recover the data there to put it in a part of the drive that isn't damaged.

Should I run SFC before or after DISM? ›

Because, if SFC needs to replace one or more files, it'll fail if the primary store where the backup copies of files are located is corrupt. Running DISM's /ScanHealth first lets you know whether the store is good or not and, if it's not, you'll need to run the /RestoreHealth option before running SFC.

How to repair corrupt Windows 10 using cmd? ›

In the command prompt window, type SFC /scannow and press Enter . The system file checker utility checks the integrity of Windows system files and repairs them if required. After the process is complete, reboot the computer.

What does DISM actually do? ›

DISM is an administrator-level tool to repair Windows images and make changes to Windows installation media. It replaces many other Windows deployment tools, such as PEimg, Intlcfg, ImageX, and Package Manager.

Has SFC scannow ever fixed anything? ›

If you actually have corrupted or missing Windows files, it should fix them. It doesn't fix other things (bad drivers, bad RAM, bad sectors) so often people are running it as a last ditch effort rather than diagnosing their actual problem.

Will DISM cleanup delete my files? ›

Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 10 or later gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1- ...

Can I use my PC while DISM? ›

You could do it, as it doesn't affect system files, but it wouldn't be a bad idea to take a break while the commands are running. You could do it, as it doesn't affect system files, but it wouldn't be a bad idea to take a break while the commands are running.

Can DISM apply an image? ›

The DISM command allows you to apply updates to a Windows image online or offline easily. This ensures that the image includes the latest patches and fixes. Here, <image_path> is the path to the Windows image, and <update_path> is the path to the update package you want to apply.

How to restore health Windows 10 using cmd? ›

In the command prompt window, type dism /online /cleanup-image /restorehealth, and press Enter. Alternatively, you can copy the command, and paste it in the command window by right clicking in it and selecting Paste.

Which to run first, sfc or dism? ›

There is no specific order to CHKDSK, SFC, and DISM, as why you run each tool depends on the issue you're experiencing. However, if you run SFC and it finds corrupt files and other issues, you should then run DISM to fix the Component Store and then run SFC again to fix any broken files.

Top Articles
Wall Street braces for commercial real estate time bomb
M1 Finance vs Empower (formerly Personal Capital) – Robo-Advisor Comparison - Robo-Advisor Pros
WALB Locker Room Report Week 5 2024
Craigslist Free En Dallas Tx
Dte Outage Map Woodhaven
Devon Lannigan Obituary
Week 2 Defense (DEF) Streamers, Starters & Rankings: 2024 Fantasy Tiers, Rankings
Regal Amc Near Me
7.2: Introduction to the Endocrine System
Unlocking the Enigmatic Tonicamille: A Journey from Small Town to Social Media Stardom
Embassy Suites Wisconsin Dells
Ohiohealth Esource Employee Login
Blue Ridge Now Mugshots Hendersonville Nc
Qhc Learning
Nonuclub
Amelia Bissoon Wedding
How Much Is Tj Maxx Starting Pay
U/Apprenhensive_You8924
104 Whiley Road Lancaster Ohio
Christina Khalil Forum
Hilo Hi Craigslist
50 Shades Darker Movie 123Movies
Plan Z - Nazi Shipbuilding Plans
TeamNet | Agilio Software
D2L Brightspace Clc
Devotion Showtimes Near Regency Buenaventura 6
From This Corner - Chief Glen Brock: A Shawnee Thinker
Mcclendon's Near Me
Black Lion Backpack And Glider Voucher
Ullu Coupon Code
Filmy Met
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Fedex Walgreens Pickup Times
NIST Special Publication (SP) 800-37 Rev. 2 (Withdrawn), Risk Management Framework for Information Systems and Organizations: A System Life Cycle Approach for Security and Privacy
Song That Goes Yeah Yeah Yeah Yeah Sounds Like Mgmt
Skip The Games Ventura
Ljw Obits
The Thing About ‘Dateline’
Uc Santa Cruz Events
Hellgirl000
11301 Lakeline Blvd Parkline Plaza Ctr Ste 150
Craigslist Freeport Illinois
062203010
RECAP: Resilient Football rallies to claim rollercoaster 24-21 victory over Clarion - Shippensburg University Athletics
FREE - Divitarot.com - Tarot Denis Lapierre - Free divinatory tarot - Your divinatory tarot - Your future according to the cards! - Official website of Denis Lapierre - LIVE TAROT - Online Free Tarot cards reading - TAROT - Your free online latin tarot re
Costco Gas Foster City
Europa Universalis 4: Army Composition Guide
Cara Corcione Obituary
Horseneck Beach State Reservation Water Temperature
Every Type of Sentinel in the Marvel Universe
2000 Fortnite Symbols
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5964

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.