4 Best Ways to Use DISM Commands to Repair Windows 10 PC (2024)

Readers help support Windows Report. We may get a commission if you buy through our links. 4 Best Ways to Use DISM Commands to Repair Windows 10 PC (1)

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Operating systems can break down, files can get corrupt, and sometimes fixing and restoring those files to their original state is needed.

There are many repair tools for Windows 10 that will scan and fix your files, and today, we’re going to focus on the DSIM tool.

In today’s article, we will discuss everything about the DISM tool, from what the tool is to what the command does, and other related questions.

So, without further ado, let’s get started.

What is DISM on Windows 10?

When you start getting errors such as Blue Screen of Death (BSoD), it signifies that some of your Windows files might be corrupt and need fixing.

The same goes when applications start crashing or certain Windows 10 features stop working.

This is where the DISM (Deployment Image & Servicing Management) comes in. It will scan your system for corrupt files and repair any corrupt sectors.

It is mainly used if the second built-in tool for repairing Windows 10 fails. DISM fixes component store corruption that prevents SFC from running correctly.

Should I run DISM or SFC first?

Another built-in option to repair Windows is SFC (System File Checker). This command scans your Windows and checks for corrupt files.

If any corrupt files are found, SFC will try to replace them. However, sometimes corrupt files can even affect SFC.

Whenever you cannot perform an SFC scan, it’s time to call the cavalry. And this is where DISM comes into play. If SFC is corrupt and doesn’t work for some reason, you can use DISM to restore it.

How do I run DISM Cleanup on Windows 10?

1. Run directly from Command Prompt

  1. Use Cortana to search for cmd.
  2. Right-click on Command Prompt and chooseRun as administrator.
  3. Type the command below:DISM /Online /Cleanup-Image /RestoreHealth
  4. PressEnterto run the command.
  5. Wait for it to perform the scan. It can take about five to ten minutes, sometimes more.

After DISM has finished its scan, restart your computer. Note that if the progress bar gets stuck on 20 percent, don’t worry. That’s perfectly normal. You need to be patient.

2. Use DISM with ISO file to fix a Windows recovery image

  1. Mount your Windows 10 .iso file by double-clicking it.
  2. OpenCommand PromptorPowerShellas administrator.
  3. Check for system health by running these commands:dism /online /cleanup-image /scanhealth dism /online /cleanup-image /checkhealthdism /online /cleanup-image /restorehealth DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:SourcesInstall.wim:1 /LimitAccess
  4. Remember to replaceXwith the letter drive on which your Windows 10 ISO is mounted.

With the command above, you should be able to use DISM with ISO to repair a Windows image on your PC. Remember to restart your computer after the process is complete.

3. Use DISM offline repair Windows 10

  1. Connect Windows 10 installation media to your PC.
  2. Press Windows key + X and choose Windows PowerShell (Admin).
  3. Run the following command: Get-WindowsImage -ImagePath "D:\sources\install.wim"
  4. Find the image index that matches your Windows edition. In our case, it was:ImageIndex = 6
  5. Run one of these commands:

    DISM /online /cleanup-image /restorehealth /source:WIM:D:\sources\install.wim:6 /limitaccess Or: DISM /online /cleanup-image /restorehealth /source:ESD:D:\sources\install.esd:6 /limitaccess

  6. Wait for the process to finish.

This is a useful little trick you can use if DISM has failed on Windows, so we encourage you to try it.

Many users also reported that this method helped them with DISM source files could not be found error. So it is a good option to have.

Read more about this topic
  • How to quickly fix DISM error 50 on Windows 10/11
  • How to fix Dism.exe error 1392 on your Windows computer
  • Fix: Reference by pointer BSoD error [Bugcheck 0x00000018]

4. Use alternative software

We did mention that two main built-in tools can deal with corruption.

But you can also employ the help of powerful system repair software. You can perform a full system scan automatically, effortlessly, and without having to deal with any line of commands whatsoever.

The results will be just as good. Thus, you will obtain an error-free, corruption-liberated system that will work like a charm for years to come.

Will DISM delete my files?

As mentioned earlier, DISM scans for corrupt files and fixes them. Its major purpose is to repair corrupt files and sectors and not to delete files.

It keeps a log of issues found and repaired and won’t affect your data or apps.

As you can see, SFC and DISM are quite useful tools and aren’t too hard to use. To learn more, we suggest reading our guide about the difference between CHKDSK, SFC and DISM.

In the best-case scenario, they can save you from a clean reinstall of Windows 10. So, if you notice any system errors or Windows functions not working, make sure that you give SFC and DISM a try.

To learn more, don’t miss our What is dismhost.exe guide for more information. We also have a guide on how to fix Elevated permissions are required to run DISM message, so don’t miss it.

If you run into any problems using DISM, feel free to drop us a message in the comments below.

Ivan JenicWindows Hardware Expert

Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and driver troubleshooting.When he's not tackling diverse driver-related problems, Ivan enjoys watching good movies and spending time hiking with his family and friends.

4 Best Ways to Use DISM Commands to Repair Windows 10 PC (2024)

References

Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6398

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.