How to Run the DISM To Repair Windows 10 and 11 


Quick Answer

To repair windows 10 first open cmd and enter cammond DISM/Online/Cleanup-Image/ ScanHealth,

once scanning get completed then eneter repair cammond DISM/Online/Cleanup-image/Restorehealth ,

dism tool will download neccesary files from official server to repair and fix problems in windows 11.

Here are a comprehensive guide to repair windows 11 image using dism tool wether it online or offline.

Make sure you are running latest windows 11 and your PC is connected to fast internet connection to complete repairing process quickly as possible.

Let's start,

What is DISM tool

DISM tool is know as deployment image and servicing management and mainly used to repair ( service) windows image offline and online.

DISM tool can be run by using powershell as well as command line tool to get mount and get information about windows image.

You can use dism tool to install, configure and update windows features as well as packages, driver using dism servicing command.

It can able used for windows offline image as well as running operation system.

Repair windows 11 using dism tool in command line

Before start repairing windows 11 image using dism it's recommended to take full backup of your PC to prevent and data loss or roll back in case of unintended error occurs.

1. Open start and tap search icon

2. Search for "cmd" and click "run as administrator" and press yes in confirmation box.

command prompt in windows start

3. Type or paste given command to check system health first to find any issue. Enter: DISM/Online/Cleanup-Image/ ScanHealth

scan command in command prompt app

This command will find any corrupt file or components in running windows 11 image and show you.

To repair any corruption or error in windows image run restorehealth command to automatically fix the problem in windows image.

1. Open start and click search 

2. Search "cmd" and click on "run as administrator" and confirm yes in pop up box.

3. Type Enter:DISM/Online/Cleanup-image/Restorehealth 

restore health command in windows

After that command run you will see the repairing process wi started and it take some time to complete.

Make sure your system won't turn off during process and if you see any stuck in process then wait it normal.

In this process dism tool connect your PC to Microsoft server to download needed file and update to repair missing part and fixes.

After completing this process it recommended to one restart your PC.

FAQ

1. Repair offline windows 11 image

Here how you can repair a window 11 offline image that stored in your PC.

A offline image means a window 11 image that not mounted or running in system and stored in a folder anywhere in PC.

To repair offline image follow these instructions,

  1. 1. Open start and search for "cmd"
  2. 2. Click on command prompt and run as administrator 
  3. 3. Enter: Dism/offline/cleanup-image/ScanHealth Source:c:\main\folder\windows

This will scan your windows 11 image and to repair it put, replace the source: with your currect store windows 11 image location.

4. Enter: dism/offline/cleanup-image/restorehealth/source:c:\main\folder\windows

This will repair your image using windows official update if required. 

If you want to not use windows update as source then add limit-access at end of the string.

2. Error 87 dism

Error 87 occurs when something going wrong while starting repair or scan process.

Here are few reasons that cause error 87 in command line while using dism tool.

There are many reasons that error appears but main it caused by wrong command line, incorrect dism version or don't allowed administrative access.

To solve this use latest windows as well as dism version, check command line for missing space or slashes and give run as administrator permission to command line tool.

3. How restre health works 

The restorehealth work by matching windows necessary file using Microsoft update server to fix any missing file or alignment in windows official system file and your PC windows files.

photo of abhishek tiwari who is founder and owner of abinfox

Abhishek Tiwari

With real time experience and a computer science degree, Abhishek possesses a profound understanding of windows 11/10 and everyday tech and its potential to solve problems. Learn More