How to Repair a Corrupted Windows 10 Image using DISM

Lutfij

Titan
Moderator
Microsoft has included a number of administrative and functional tools at the end users disposal should the need for them arise. The corruption of your Windows 10 installation is always a pain. For those with slow internet connections or limited resources, a re-installation of Windows 10 is not always possible. With that in mind Microsoft has included a tool whereby you can repair your OS's installer image using the Deployment Imaging and Servicing Management tool (DISM for short) and correct any underlying/hidden corruptions.

Follow these steps to get your Installation Image into proper form.

    ■Open the “Start Menu” by clicking the “Start Button” in the lower left corner of the screen or by tapping the “Windows” key on your keyboard.
    pwK3yiL.jpg


    ■Type CMD
    Rwpeesy.jpg


    ■Right click CMD and run as an administrator(this is what's know as an elevated command prompt)
    s1ihuKG.jpg

    i3gIMpA.jpg


    ■There are a couple of ways you can identify, locate and rectify the damaged file(s):
  • a| To quickly check if the image corruption is caused by a failed process and whether it can be repaired

  • b| To check for component store corruption

  • c| To check if the image is suffering from component store corruption, performing automatic repair work while also outputting the findings on a log file

  • d| Using a install.wim to act as a basis for a good versions of corrupted files and use it to repair your image
  • Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Directory Path and location to install.wim file:1
    or
    Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim file:1 /limitaccess
    (to prevent DISM using Windows update for online images)

    Example:
    Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:F:\sources\install.wim file:1 /limitaccess

  • e| Using install.esd to act as a source for good version of corrupt files and repair the corruption type the following
  • Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file:1
    or
    Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file:1 /limitaccess

    Example:
    Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\Install.esd:1 /limitaccess
    or
    Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:G:\Sources\Install.esd:1 /limitaccess
    (where G is the drive letter for your USB device)

    ■If you've performed any of the steps outlined in Step 4 then you are advised to reboot your system for settings/repairs to take action.
    LAMJSTM.jpg