How To Use DISM Command Tool To Repair Windows 10 Image

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

We may earn a commission for purchases using our links. Learn more.

FIXING WINDOWS 10

How to use DISM command tool to repair Windows


10 image
Are you having problems with Windows 10? In this guide, we'll show you the steps to
repair the Windows image to fix the installation using System File Checker (SFC).

MAURO HUCULAK 20 Feb 2020  76

   

Source: Windows Central

On Windows 10, Deployment Image Servicing and Management (DISM) is a tool


designed for network administrators to prepare, modify, and repair system
images, including the Windows Recovery Environment, Windows Setup, and
Windows PE (WinPE). However, anyone can also use the tool to fix common
problems with the hidden recovery image on your computer.

Usually, when your device is experiencing performance issues, doesn't start


correctly, or you're troubleshooting errors, you can use the System File Checker
tool to scan, detect, and replace corrupted or missing system files using the
locally available recovery image.

However, if the replacement files inside the Windows 10 image are damaged in
any way, the SFC tool won't work. In this particular situation, you can use the
DISM tool to scan and repair the "install.wim" image, which you can then use
with SFC to repair your installation.

 Best online learning tools for kids: ABCmouse, Reading IQ, & more
Limited Time Offers

In this Windows 10 guide, we'll walk you through the steps to use the DISM and
SFC tools with Command Prompt to bring your device back to a healthy
working state.

 How to run DISM to repair image of Windows 10


 How to run SFC to repair problems of Windows 10

Warning: Although these are non-destructive commands, you'll be making


system changes.
 It's recommended to create a temporary
 full backup before
proceeding.

How to run DISM to repair image of Windows 10

Using the Deployment Image Servicing and Management command tool, you
have three main options to repair a Windows 10 image, including "CheckHealth,"
"ScanHealth," and "RestoreHealth," and you want to run them in that hierarchy
order. Also, depending on the complexity of the issue, there are additional
settings that you can use with the "RestoreHealth" option to fix an image using
different sources.

Checking issues with DISM using CheckHealth option

You can use the CheckHealth option with DISM to quickly determine if there
are any corruptions inside the local image, but the option won't perform any
repairs.

To check for issues within the image 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 perform a quick health check and press
Enter:
DISM /Online /Cleanup-Image /CheckHealth

Source: Windows Central

Once you complete


 the steps, the
command will run and
verify if there is any
data corruption that needs fixing.

Checking issues with DISM using ScanHealth option

You can run DISM with the ScanHealth option instead of "CheckHealth" to
perform a more advanced scan to determine if the Windows 10 image has any
problems.

To perform an advanced scan 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.
Type the following command to perform an advanced DISM scan and press
Enter:
DISM /Online /Cleanup-Image /ScanHealth
Source: Windows Central

After you complete the steps, the advanced scan will take several minutes to
determine if the local image needs repairing.

Repairing issues with DISM using RestoreHealth option

If there are issues, then you can use DISM with the RestoreHealth option,
which will run an advanced scan and repair any problems automatically.

To repair Windows 10 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.
Type the following command to repair the Windows 10 image and press
Enter:
DISM /Online /Cleanup-Image /RestoreHealth

Source: Windows Central


Quick note: While the command is running, it's expected to see the
process stuck at 20 or 40 percent. After a few minutes, the process will
complete successfully.

Once you complete the steps, the Deployment Image Servicing and
Management tool will connect to the Windows Update servers to download and
replace any damaged files in the local image for Windows 10 as necessary.

Repairing issues with DISM using WIM image

The DISM tool is unlikely to run into issues, but in the rare case that Windows
Update is causing problems getting the replacement files or you don't have an
internet connection, you'll need to use an alternative source to repair the files
using another image with the Source option.

Before you can specify a different source, you'll need an install.wim or


install.esd file from another computer, bootable installation media, or ISO file.
Also, it's important that the source of the known good files matches the same
version, edition, and language of Windows 10 that you're using on your
computer.    

Download Windows 10 ISO file

The recommended method for accessing a good image is using the Media
Creation Tool to download an ISO image of Windows 10.

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

1. Open this Microsoft support website.


2. Click the Download tool now button.
3. Double-click the MediaCreationToolxxxx.exe file to launch the app.
4. Click the Accept button to agree to the terms.
Select the Create installation media (USB flash drive, DVD, or ISO file)
for another PC option.
   
Source: Windows Central

6. Click the Next button.


Click the Next button again.
Source: Windows Central

8. Select the ISO file option.

   

Source: Windows Central

9. Click the Next button.


10. Select the destination for the ISO file.
Click the Save button.
Source: Windows Central

Click the link to open the file location with File Explorer.

   

3.
Source: Windows Central

13. Click the Finish button.


14. Double-click the Windows.iso file to mount the image.
15. Under the This PC section, in the left pane, confirm the drive letter for the
mounted image.

   
Source: Windows Central

After you complete the steps, you can use DISM with the "Source" option to
repair the local image of Windows 10.

Fix Windows 10 recovery image

To run DISM specifying a different 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.
Type the following command to repair the Windows 10 image and press
Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:D:\Sources\install.wim
Source: Windows Central
In the command, make sure to replace "D" for the letter that corresponds to
your ISO mount point.
4. (Optional) Type the following command to limit the use of Windows Update
and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:D\Sources\install.wim /LimitAccess
5. (Optional) Type the following variant of the previous command to
accomplish the same task and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:wim:D:\Sources\install.wim:1 /LimitAccess
In the command, make sure to change "D:\Sources," for the path that
corresponds
 to the location of
the install.wim file.  
Once you complete the steps, the command will scan and repair any issues
using the install.wim image that you specified.
3.
Repairing issues with DISM using ESD image

Alternatively, if you have an encrypted install.esd image from a recent upgrade,


you can use it to repair the damaged files.

To run DISM specifying a different source (install.esd) image, use these steps:

1. Open Start.
2. Search for Command Prompt, right-click the top result, and select the Run
as administrator option.
Type the following command to repair the image with an external source
and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:C:\$Windows.~BT\Sources\install.esd
Source: Windows Central
In the command, make sure to change "C:\$Windows.~BT\Sources," for the
path that corresponds to the location of the install.esd file (if applicable).
4. (Optional) Type the following command to limit the use of Windows Update
and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:C:\$Windows.~BT\Sources\install.esd /LimitAccess
5. (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:\$Windows.~BT\Sources\install.esd:1
/LimitAccess
6. (Optional) Type the following command to use an install.esd file located in
another drive and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
/Source:D:\Sources\install.esd
In the command, make sure to change "D:\Sources," for the path that
corresponds to the location of the install.esd file.

After you complete the steps, the Deployment Image Servicing and
Management command tool will run and repair the damaged files using the files
included in the install.esd image. Once the process completes, the log files will
be saved on %windir%/Logs/CBS/CBS.log and
%windir%\Logs\DISM\dism.log capturing any issues found and those that
were fixed.
How to run SFC to repair problems on Windows 10

The instructions outlined above to use DISM will repair any issues with the local
hidden image, but they won't fix any problems with the actual installation of
Windows 10. However, now that you have a healthy image, you can use it with
the System File Checker to repair common issues preventing your device from
running correctly.

To use the SFC command tool to repair the Windows 10 installation, 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 and press Enter:
SFC /scannow

   

Source: Windows Central


Quick tip: If errors are found, you may want to run the command about
three times to make sure that everything is fixed correctly.

Once you complete the steps, the System File Checker will scan your device
and repair any system files using the good files from the local image to restore
the health of Windows 10.

Although the above command should be enough to fix an installation, there are
5.
a lot of SFC commands that you can use to repair Windows 10.

We're focusing this guide on Windows 10, but you can also use DISM to service
images on Windows 8.1 and Windows 7, but the options available will vary
depending on the version that you're using.
More Windows 10 resources

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

 Windows 10 on Windows Central – All you need to know


 Windows 10 help, tips, and tricks
 Windows 10 forums on Windows Central

We may earn a commission for purchases using our links. Learn more.

SEEMS FASTER

Benchmarking the new Surface Book 3 15 with GTX


1660 Ti and 10th Gen i7
Although it's too early for a review, here are some initial benchmarks from
the new Surface Book 3 15-inch with a Core i7 and NVIDIA GeForce 1660
Ti (Max-Q) and how it compares to Surface Book 2 and other premium
laptops. Spoiler: While the CPU is just OK, that 1660 Ti definitely bumps up
the Book 3's potential.
   
BIG CHANGES

IFA 2020 will be the first in-person tech conference


following the pandemic
IFA 2020 will be held as a three-day invite-only event from September 3-5
in Berlin. Not more than 1,000 attendees will be allowed per day.

BUILD IT

Here's how to watch Microsoft's Build 2020


conference
Microsoft's Build 2020 conference goes live today for two days of coding
sessions for developers. This year, the event is completely virtual and you
can tune in for the keynote and every session as it happens. Here's how.

SOOOOO PRETTY

Best Windows 10 Wallpaper Apps and Websites in


2020
You stare at your desktop wallpaper all day, so why leave it boring or as the
Windows 10 default wallpaper? These websites and apps will help you
keep your desktop fresh and beautiful.
 Help & How

We may earn a commission for purchases using our links. Learn more.

MODERN TERMINAL

Microsoft's open-source 'Windows Terminal' app


reaches stable release
Windows Terminal is now available for enterprise use.

ZAC BOWDEN 19 May 2020 0

   

7.

Source: Windows Central


What you need to know
 Windows Terminal hits 1.0 release.
 Linux GUI apps now also supported.

L ast year, Microsoft announced that it was working on an open-source


terminal app for Windows 10 with support for multiple command line
executables, including PowerShell, Windows Subsystem for Linux, and Azure
Cloud Shell. Today, Microsoft is announcing that Windows Terminal is now ready
for enterprise use with its 1.0 release.

Windows Terminal is available today from both the Microsoft Store and GitHub.
Unlike the traditional Command Prompt and PowerShell, Windows Terminal is a
modern app with unicode and UTF-8 character support, GPU accelerated text
rendering, custom themes, and can run Linux GUI apps directly.

 Best online learning tools for kids: ABCmouse, Reading IQ, & more
Limited Time Offers
   
Alongside the release of Windows Terminal is a new Windows Package
Manager for developers that will make it easy for developers to set up their work
environments with a command line interface like Windows Terminal. The
Windows Package manager will let developers use scripts to install tools quickly
and easily from an open-source repository hosted on GitHub.

The Windows Subsystem for Linux is also getting some updates, including the
following:

 Added support for graphics processing unit (GPU) compute workflows


allows Linux tools to leverage GPUs to enable hardware acceleration for
many development scenarios, such as parallel computation and training
machine learning (ML) and artificial intelligence (AI) models.
 Support for Linux graphical user interface (GUI) apps will enable you to
open a WSL instance and run a Linux GUI app directly without the need for
a third-party X server. This will help you to run your favorite apps in a Linux
environment such as an integrated development environment (IDE).
 WSL will soon support a simplified install experience by running the
command 'wsl.exe – install,' which will make it easier than ever to start using
Linux apps on Windows.

What are your thoughts on Windows Terminal for Windows 10? Let us know in
the comments.

We may earn a commission for purchases using our links. Learn more.

 News Windows 10

 View Comments (0)

© Future US, Inc. • Terms & Conditions • Privacy Policy • Cookie Policy • Careers • Licensing •
External Links Disclosure • Accessibility Statement

   

11.
   
12.

   
   
   

3.
   
   

3.

You might also like