Vous êtes sur la page 1sur 21

DISM - Repair Windows 10 Image - Windows 10 Forums

1 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...
User Name

Password

Remember Me?

What's New?

Forum

New Posts FAQ Forum Actions

Category

Tutorials

Log in

Help

Join Us

Advanced Search

Tutorial Index

Windows 10 Forums

Tutorials

Register

DISM - Repair Windows 10 Image

DISM - Repair Windows 10 Image

Page 1 of 23 1 2 3 11 ...

Last

How to Repair Windows 10 Image using DISM


Published by Brink
04 Jul 2015

How to Repair Windows 10 Image using DISM

Published by

Information

If a Windows image becomes unserviceable, you can use the Deployment


Imaging and Servicing Management (DISM) tool to update the files and
correct the problem.

Brink

For example, you would use DISM to fix Windows component store
corruption when a sfc /scannow command is unable to repair corrupted or
modified system files because the component store (source) is corrupted.
SFC should be able to repair the files afterwards.

Administrator

For more information, see:

Fixing component store corruption in Windows 8 and Windows Server


2012 - The Windows Servicing Guy - Site Home - TechNet Blogs
How to Repair a Windows Image

Posts: 10,852

This tutorial will show you how to do an Inbox Corruption Repair with the
DISM /Cleanup-Image tool to fix component store corruption in Windows 10.

You must be signed in as an administrator to be able to do an Inbox


Corruption Repair with the Deployment Imaging and Servicing Management
(DISM) tool.

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

2 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Note

The DISM /Cleanup-Image tool saves it's log files in the file locations below. To
be able to view these logs, you would need to copy them from the locations
below to your desktop, then open them from your desktop.
C:\Windows\Logs\CBS\CBS.log

C:\Windows\Logs\DISM\dism.log

CONTENTS:

Option One: To Run "DISM /Cleanup-Image" Tool in Command Prompt


Option Two: To Run "DISM /Cleanup-Image" Tool in PowerShell

OPTION ONE

To Run "DISM /Cleanup-Image" Tool in Command Prompt


1. Open an elevated command prompt.

2. Do step3, step 4, step 5 (recommended), step 6, or step 7 below for what DISM command

you would like to use.

3. To Use DISM /CheckHealth Command


Note

You would use /CheckHealth to only check whether the image has been
flagged as corrupted by a failed process and whether the corruption can be
repaired. This is just a quick way to see if corruption currently exists, and to
inform you if there is corruption. This does not fix anything or create a log.
This will finish running almost instantly.
A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
Dism /Online /Cleanup-Image /CheckHealth

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

3 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

4. To Use DISM /ScanHealth Command


Note

You would use /ScanHealth to scan the image for component store
corruption. This option does not fix any corruption. It only checks for
component store corruption and records that corruption to the log file. This
can take around 5-10 minutes to finish. It will stay at 20% for a while before
continuing.
A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
Dism /Online /Cleanup-Image /ScanHealth

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

4 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

5. To Use DISM /RestoreHealth Command


Note

(recommended) You would use /RestoreHealth to scan the image for


component store corruption, perform repair operations automatically, and
records that corruption to the log file. This can take around 10-15 minutes
up to a few hours to finish depending on the level of corruption. It will stay
at 20% for a while before continuing.
If this command fails, then you can do step 6 or step 7 below instead.

A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
Dism /Online /Cleanup-Image /RestoreHealth

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

5 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

6. To Use DISM /RestoreHealth /Source:wim Command


Note

You would use /Source with /RestoreHealth to specify the location of an


install.wim file as the source of known good versions of files that can be
used for the repair. This can take around 10-15 minutes up to a few hours
to finish depending on the level of corruption. It will stay at 20% for a while
before continuing.
This can be useful if step 5 above was not able to repair the Windows
image (component store).

The install.wim file will be in the Sources folder of a mounted Windows 10


ISO from Microsoft TechBench (use ISO from OPTION ONE at link) file.
If you have an install.esd file instead of install.wim, then you would need
to use step 7 below instead.

A) In the elevated command prompt, type the command below you want to use, press
Enter, and go to step 8 below. (see screenshot below)
file:1

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim

OR

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

6 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

(To prevent DISM from using Windows Update for online images)

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim


file:1 /limitaccess
For example:

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources


\install.wim:1 /limitaccess

7. To Use DISM /RestoreHealth /Source:esd Command


Note

You would use /Source with /RestoreHealth to specify the location of an


install.esd file as the source of known good versions of files that can be
used for the repair. This can take around 10-15 minutes up to a few hours
to finish depending on the level of corruption. It will stay at 20% for a while
before continuing.
This can be useful if step 5 above was not able to repair the Windows
image (component store).

The install.esd file will be in the Sources folder of a mounted Windows 10


ISO from Media Creation Tool (use ISO from OPTION TWO at link) file.
If you have an install.wim file instead of install.esd, then you would need
to use step 6 above instead.

A) In the elevated command prompt, type the command below you want to use, press
Enter, and go to step 8 below. (see screenshot below)
file:1

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

7 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

OR

(To prevent DISM from using Windows Update for online images)

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd


file:1 /limitaccess
For example:

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT


\Sources\Install.esd:1 /limitaccess

OR

(USB from Media Creation Tool where E is drive letter of USB)

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:E:\Sources\Install.esd:1


/limitaccess

8. If you did step 5, step 6, or step 7 above, it is recommended to restart the computer to

fully apply.

OPTION TWO

To Run "DISM /Cleanup-Image" Tool in PowerShell


1. Open an elevated Windows PowerShell.

2. Do step3, step 4, step 5 (recommended), step 6, or step 7 below for what DISM command
you would like to use.

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

8 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

3. To Use DISM /CheckHealth Command


Note

You would use /CheckHealth to only check whether the image has been
flagged as corrupted by a failed process and whether the corruption can be
repaired. This is just a quick way to see if corruption currently exists, and to
inform you if there is corruption. This does not fix anything or create a log.
This will finish running almost instantly.
A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
Repair-WindowsImage -Online -CheckHealth

4. To Use DISM /ScanHealth Command


Note

You would use /ScanHealth to scan the image for component store
corruption. This option does not fix any corruption. It only checks for
component store corruption and records that corruption to the log file. This
can take around 5-10 minutes to finish. It will stay at 20% for a while before
continuing.
A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

9 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Repair-WindowsImage -Online -ScanHealth

5. To Use DISM /RestoreHealth Command


Note

(recommended) You would use /RestoreHealth to scan the image for


component store corruption, perform repair operations automatically, and
records that corruption to the log file. This can take around 10-15 minutes
up to a few hours to finish depending on the level of corruption. It will stay
at 20% for a while before continuing.
If this command fails, then you can do step 6 or step 7 below instead.

A) In the elevated command prompt, copy and paste the command below, press Enter,
and go to step 8 below. (see screenshot below)
Repair-WindowsImage -Online -RestoreHealth

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

10 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

6. To Use DISM /RestoreHealth /Source:wim Command


Note

You would use /Source with /RestoreHealth to specify the location of an


install.wim file as the source of known good versions of files that can be
used for the repair. This can take around 10-15 minutes up to a few hours
to finish depending on the level of corruption. It will stay at 20% for a while
before continuing.
This can be useful if step 5 above was not able to repair the Windows
image (component store).

The install.wim file will be in the Sources folder of a mounted Windows 10


ISO from Microsoft TechBench (Use ISO from OPTION ONE at link) file.
If you have an install.esd file instead of install.wim, then you would need
to use step 7 below instead.

A) In the elevated command prompt, type the command below you want to use, press
Enter, and go to step 8 below. (see screenshot below)
file:1

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim

OR

(To prevent DISM from using Windows Update for online images)

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim


19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

11 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

file:1 /limitaccess
For example:

Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources


\install.wim:1 /limitaccess

7. To Use DISM /RestoreHealth /Source:esd Command


Note

You would use /Source with /RestoreHealth to specify the location of an


install.esd file as the source of known good versions of files that can be
used for the repair. This can take around 10-15 minutes up to a few hours
to finish depending on the level of corruption. It will stay at 20% for a while
before continuing.
This can be useful if step 5 above was not able to repair the Windows
image (component store).

The install.esd file can be in the Sources folder of a mounted Windows 10


ISO from Media Creation Tool (Use ISO from OPTION TWO at link) file.
If you have an install.wim file instead of install.esd, then you would need
to use step 6 above instead.

A) In the elevated command prompt, type the command below you want to use, press
Enter, and go to step 8 below. (see screenshot below)
file:1

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd

OR

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

12 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

(To prevent DISM from using Windows Update for online images)

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd


file:1 /limitaccess
For example:

Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT


\Sources\Install.esd:1 /limitaccess

8. If you did step 5, step 6, or step 7 above, it is recommended to restart the computer to

fully apply.
That's it,
Shawn
Related Tutorials

How to Run SFC Command to Repair System Files in Windows 10


How to Do a Repair Install of Windows 10 with an In-place Upgrade

#1

18 Jul 2015

Joanne
Member

Join Date : Jun 2015


Posts : 343
Windows 10 Pro
64bit; Windows 10 TP

Hi
I have an inquiry :
If I wish "To Use DISM /RestoreHealth /Source:wim Command" (step 6) to
restore the health of my 10240 installation, can I do this? Is it possible, I
mean?

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

13 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

And if I have the official 10162 ISO on my desktop, mounted so found on


drive G: , which is the full path I should use?
So, in my case the command is :
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:G:\sources
\install.wim:1 /limitaccess
?
Because when I run it this way it says that it cannot find the Source..
My System Specs

Reply With Quote

#2

18 Jul 2015

Brink

Administrator
Join Date : Oct 2013
Posts : 10,852
64-bit Windows 10
Pro build 14271

Hello Joanne,
You can use the command below from step 5 option one to do so unless
DISM is unable to repair the Windows image from the default source.
Dism /Online /Cleanup-Image /RestoreHealth
Since it says it can't find the specified source using step 6, your ISO may
have been created with .esd instead of .wim. If so, give step 7 a try to see it
works.

My System Specs

Reply With Quote

#3

18 Jul 2015

Joanne
Member

Join Date : Jun 2015


Posts : 343
Windows 10 Pro
64bit; Windows 10 TP

Thank you for your reply!


Here is the result. Please advise me what to do next to repair my
installation. I have the official 10162 ISO on my other SSD.

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

14 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Here is the reason I am trying this. Look how many times today's update has
failed installing....

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

15 of 21

My System Specs
18 Jul 2015

Brink

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Reply With Quote

#4

Administrator
Join Date : Oct 2013
Posts : 10,852
64-bit Windows 10
Pro build 14271

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

16 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Yep, in that case, use the command below to run the DISM command from
the install.wim source on your G: drive.
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:G:\sources
\install.wim:1 /limitaccess

My System Specs

Reply With Quote

#5

18 Jul 2015

Joanne
Member

Join Date : Jun 2015


Posts : 343
Windows 10 Pro
64bit; Windows 10 TP

I just did it but it cannot find the source files. I mounted the official 10162
ISO so the G:\ drive was created. Then I run the command. But it doesn't
work.

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

17 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

18 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

My System Specs

Reply With Quote

#6

18 Jul 2015

Brink

Administrator
Join Date : Oct 2013
Posts : 10,852
64-bit Windows 10
Pro build 14271

In that case, run the commands in the order below one at a time.
Dism.exe /online /Cleanup-Image /StartComponentCleanup
sfc /scannow
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow

My System Specs
18 Jul 2015

Joanne

Reply With Quote

#7

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

19 of 21

Member

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Okay... I've run the 3 out of the 4 commands and...I have issues as it seems....

Join Date : Jun 2015


Posts : 343
Windows 10 Pro
64bit; Windows 10 TP

So, what can I do next, please?


Thank you.
PS: how can I upload the CBS log file, in case it's needed?
My System Specs

Reply With Quote

#8

18 Jul 2015

Brink

Administrator
Join Date : Oct 2013
Posts : 10,852
64-bit Windows 10
Pro build 14271

My System Specs

In that case, you may need to refresh Windows 10 instead.


To upload the CBS.log, you would need to copy it to your desktop first, ZIP
it, then upload the ZIP.

Reply With Quote

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

20 of 21

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

18 Jul 2015

Joanne
Member

Originally Posted by Brink

Join Date : Jun 2015


Posts : 343
Windows 10 Pro
64bit; Windows 10 TP

In that case, you may need to refresh Windows 10 instead.


To upload the CBS.log, you would need to copy it to your
desktop first, ZIP it, then upload the ZIP.
Thank you for your support, Brink!
Please, allow me to ask you one simple question, before reading that entire
tutorial :
- I do not care at all what will happen with my Win 10 TP installation, I do
not care wiping everything out of it - because I've not installed anything
important- but what I DO care tremendously about is my Win 7 Home
Premium installation, it being in a Dual boot system with 10, on this
computer. So, I ask : this refreshing or whatever, can it affect my Win 7 in
ANY way? Should I unplug my Win 7 SSD before attempting this refreshing?
I would clean install this Win 10 for sure but it is this special occasion now.
MS does not offer an official 10240 ISO. So clean-installing would bring me
in waiting for 10240 again, etc etc...
So?
Oh! And one last thing... Until a couple of hours ago I was sitting with 10240
untouched, waiting to get updated. But I got bored so I performed a full
Disk Cleanup, system files included, AND I have deleted all the files in the
SoftwareDistribution/Downloads folder. Will this Refresh still work after all
this?

My System Specs

Reply With Quote

Page 1 of 23 1 2 3 11 ...

Last

Previous Tutorial | Next Tutorial

19-Mar-16 4:41 PM

DISM - Repair Windows 10 Image - Windows 10 Forums

21 of 21

Category

Windows 10 Forums

Similar Threads

http://www.tenforums.com/tutorials/7808-dism-repair-windows-10-image...

Tutorials

DISM - Repair Windows 10 Image

Tutorial

How to repair your system files using Dism and Sfc in build 10041

Category

Hello, everyone, I've managed to resolve most of my problems with build 10041 by making SFC
work. I've opened a thread on Windows Insider's forums explaining how to do it. Check it out:...

Windows Insider

I've just upgraded Windows 7 64-bit HP OEM to Windows 10 Technical preview 64-bit. Extracted
the install while booted within 7, install went smoothly, opted to keep all my files, and once the
install was finished it went to boot Windows 10. It hung...

General Support

I installed the 32 bit version of W10 on an old Acer laptop to get back up to speed with
developments, and one of the first questions or issues that cropped up is when using W10's disk
image utility to make a system image. I deliberately wished to...

General Support

Windows 10 user. Having some trouble with my system after coming back from a weekend.
Nothing major...just having trouble playing some games that require plugins etc Regardless if
it's related, I just wanted to run an SFC/Scannow or...

General Support

I'm currently running the 10 TP in a virtual machine. I see that the various boot and repair
options can be accessed by <shift> Restart from the desktop, however F8 during boot doesn't
appear to work. Can someone who is actually running this on...

Installation and Setup

Windows 10 Crashing on CLASSPNP.SYS in safemode and startup repair.

W10 Disk Image Utility Reports Error After Image Creation.

SFC Scannow or DISM/RestoreHealth using Image

Windows 10 TP Repair and Recovery Features

Our Sites

Vista Forums
Eight Forums
Seven Forums
PC Help
Forum
Help Me Bake
Find Us

Site Links

Contact Us
Privacy and
Cookies
Terms of service

About Us

Windows 10 Forums is an independent web site


and has not been authorized, sponsored, or
otherwise approved by Microsoft Corporation.
"Windows 10" and related materials are
trademarks of Microsoft Corp.

Designer Media Ltd


All times are GMT -5. The time now is 06:09.

19-Mar-16 4:41 PM

Vous aimerez peut-être aussi