dism repair tools.pdf

download dism repair tools.pdf

of 21

Transcript of dism repair tools.pdf

  • 8/18/2019 dism repair tools.pdf

    1/21

    Category Windows 10 Forums Tutorials DISM - Repair Windows 10 Image

    User Name Password Log in

     Remember Me?

    Register Help

    What's New? Tutorials Join Us

    New Posts FAQ Forum Actions Tutorial Index  Advanced Search

    Page 1 of 23 1 2 3 11 ... Last

    Published by

    Brink Administrator

    Posts: 10,852

     

    DISM - Repair Windows 10 ImageHow to Repair Windows 10 Image using DISM

    Published by Brink04 Jul 2015

    How to Repair Windows 10 Image using DISM

      Information

    If a Windows image becomes unserviceable, you can use the DeploymentImaging and Servicing Management (DISM) tool to update the files andcorrect the problem.

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

    For more information, see:

    Fixing component store corruption in Windows 8 and Windows Server2012 - The Windows Servicing Guy - Site Home - TechNet BlogsHow to Repair a Windows Image

    This tutorial will show you how to do an Inbox Corruption Repair with theDISM /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 InboxCorruption Repair with the Deployment Imaging and Servicing Management(DISM) tool.

    Forum

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    2/21

      Note

    The DISM /Cleanup-Image tool saves it's log files in the file locations below. Tobe able to view these logs, you would need to copy them from the locationsbelow 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 PromptOption 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 commandyou would like to use.

     3. To Use DISM /CheckHealth Command

      Note

    You would use /CheckHealth to only check whether the image has beenflagged 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 toinform 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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    3/21

  • 8/18/2019 dism repair tools.pdf

    4/21

     5. To Use DISM /RestoreHealth Command

      Note

    (recommended) You would use /RestoreHealth to scan the image forcomponent store corruption, perform repair operations automatically, andrecords that corruption to the log file. This can take around 10-15 minutesup 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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    5/21

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

      Note

    You would use /Source with /RestoreHealth to specify the location of aninstall.wim file as the source of known good versions of files that can beused for the repair. This can take around 10-15 minutes up to a few hoursto finish depending on the level of corruption. It will stay at 20% for a whilebefore continuing.

    This can be useful if step 5 above was not able to repair the Windowsimage (component store).

    The install.wim file will be in the Sources folder of a mounted Windows 10ISO 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 needto use step 7 below instead.

    A) In the elevated command prompt, type the command below you want to use, pressEnter, and go to step 8 below. (see screenshot below)

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

    OR 

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    6/21

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

     Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wimfile: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 aninstall.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 hoursto finish depending on the level of corruption. It will stay at 20% for a whilebefore continuing.

    This can be useful if step 5 above was not able to repair the Windowsimage (component store).

    The install.esd file will be in the Sources folder of a mounted Windows 10ISO 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 needto use step 6 above instead.

    A) In the elevated command prompt, type the command below you want to use, pressEnter, and go to step 8 below. (see screenshot below)

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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    7/21

    OR 

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

     Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esdfile: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 tofully 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 commandyou would like to use.

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    8/21

     3. To Use DISM /CheckHealth Command

      Note

    You would use /CheckHealth to only check whether the image has beenflagged as corrupted by a failed process and whether the corruption can berepaired. 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 storecorruption. This option does not fix any corruption. It only checks forcomponent store corruption and records that corruption to the log file. Thiscan take around 5-10 minutes to finish. It will stay at 20% for a while beforecontinuing.

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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    9/21

     Repair-WindowsImage -Online -ScanHealth

     5. To Use DISM /RestoreHealth Command

      Note

    (recommended) You would use /RestoreHealth to scan the image forcomponent store corruption, perform repair operations automatically, and

    records that corruption to the log file. This can take around 10-15 minutesup to a few hours to finish depending on the level of corruption. It will stayat 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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    1 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    10/21

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

      Note

    You would use /Source with /RestoreHealth to specify the location of aninstall.wim file as the source of known good versions of files that can beused for the repair. This can take around 10-15 minutes up to a few hoursto finish depending on the level of corruption. It will stay at 20% for a whilebefore 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 10ISO 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 needto use step 7 below instead.

    A) In the elevated command prompt, type the command below you want to use, pressEnter, and go to step 8 below. (see screenshot below)

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

    OR 

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

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

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    11/21

    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 aninstall.esd file as the source of known good versions of files that can beused for the repair. This can take around 10-15 minutes up to a few hoursto 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 Windowsimage (component store).

    The install.esd file can be in the Sources folder of a mounted Windows 10ISO 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 needto use step 6 above instead.

    A) In the elevated command prompt, type the command below you want to use, pressEnter, and go to step 8 below. (see screenshot below)

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

    OR 

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    12/21

    Related Tutorials

    How to Run SFC Command to Repair System Files in Windows 10How to Do a Repair Install of Windows 10 with an In-place Upgrade

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

     Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esdfile: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 tofully apply.

    That's it,Shawn

    18 Jul 2015

    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?

    #1

    Join Date : Jun 2015

    Posts : 343

    Windows 10 Pro64bit; Windows 10 TP

    JoanneMember

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    13/21

    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

    18 Jul 2015

    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

    #2

    Join Date : Oct 2013

    Posts : 10,852

    64-bit Windows 10Pro build 14271

    Brink Administrator

    Reply With Quote

    18 Jul 2015

    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.

    #3

    Join Date : Jun 2015

    Posts : 343

    Windows 10 Pro64bit; Windows 10 TP

    JoanneMember

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    14/21

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

    failed installing....

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    15/21

      My System Specs

    Reply With Quote

    18 Jul 2015 #4

    Join Date : Oct 2013

    Posts : 10,852

    64-bit Windows 10Pro build 14271

    Brink Administrator

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    16/21

    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

    18 Jul 2015

    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'twork.

    #5

    Join Date : Jun 2015

    Posts : 343

    Windows 10 Pro64bit; Windows 10 TP

    JoanneMember

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    17/21

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    18/21

      My System Specs

    Reply With Quote

    18 Jul 2015

    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

    #6

    Join Date : Oct 2013

    Posts : 10,852

    64-bit Windows 10Pro build 14271

    Brink Administrator

    Reply With Quote

    18 Jul 2015 #7

    Joanne

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    19/21

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

    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

    Join Date : Jun 2015

    Posts : 343

    Windows 10 Pro64bit; Windows 10 TP

    Member

    Reply With Quote

    18 Jul 2015

    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.

      My System Specs

    #8

    Join Date : Oct 2013

    Posts : 10,852

    64-bit Windows 10Pro build 14271

    Brink Administrator

    Reply With Quote

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    20/21

    « Previous Tutorial | Next Tutorial »

     

    18 Jul 2015

    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 HomePremium 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

    Join Date : Jun 2015

    Posts : 343

    Windows 10 Pro64bit; Windows 10 TP

    JoanneMember

     Originally Posted by Brink 

    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

    Page 1 of 23 1 2 3 11 ... Last

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10

    21 19-Mar-16

  • 8/18/2019 dism repair tools.pdf

    21/21

    Category Windows 10 Forums Tutorials DISM - Repair Windows 10 Image

    Our Sites

    Vista Forums

    Eight ForumsSeven ForumsPC Help

    ForumHelp Me Bake

    Site Links

    Contact Us

    Privacy andCookiesTerms of service

    About Us

    Windows 10 Forums is an independent web site

    and has not been authorized, sponsored, orotherwise approved by Microsoft Corporation."Windows 10" and related materials aretrademarks of Microsoft Corp.

    © Designer Media LtdAll times are GMT -5. The time now is 06:09.

    Find Us

     

    Similar Threads

    Tutorial Category

    How to repair your system files using Dism and Sfc in build 10041Hello, everyone, I've managed to resolve most of my problems with build 10041 by making SFCwork. I've opened a thread on Windows Insider's forums explaining how to do it. Check it out:...

    Windows Insider

    Windows 10 Crashing on CLASSPNP.SYS in safemode and startup repair.I've just upgraded Windows 7 64-bit HP OEM to Windows 10 Technical preview 64-bit. Extractedthe install while booted within 7, install went smoothly, opted to keep all my files, and once theinstall was finished it went to boot Windows 10. It hung...

    General Support

    W10 Disk Image Utility Reports Error After Image Creation.I installed the 32 bit version of W10 on an old Acer laptop to get back up to speed withdevelopments, and one of the first questions or issues that cropped up is when using W10's diskimage utility to make a system image. I deliberately wished to...

    General Support

    SFC Scannow or DISM/RestoreHealth using ImageWindows 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

    Windows 10 TP Repair and Recovery FeaturesI'm currently running the 10 TP in a virtual machine. I see that the various boot and repairoptions can be accessed by Restart from the desktop, however F8 during boot doesn'tappear to work. Can someone who is actually running this on...

    Installation and Setup

    M - Repair Windows 10 Image - Windows 10 Forums http://www.tenforums.com/tutorials/7808-dism-repair-windows-10