Skip to content

Instantly share code, notes, and snippets.

@mhingston
Last active September 26, 2020 10:23
Show Gist options
  • Save mhingston/db9b2ab5477c2bee6998539234a4d69b to your computer and use it in GitHub Desktop.
Save mhingston/db9b2ab5477c2bee6998539234a4d69b to your computer and use it in GitHub Desktop.
Online Repair Windows 10 using DISM
  1. Download Windows 10 Media Creation Tool.

  2. Run the tool (Right-click > Run as administrator).

  3. Click Accept.

  4. Click "Create Installation Media for another PC" then Next.

  5. Leave box checked for "Use the recommended options for this PC" then Next.

  6. Click "ISO file" then Next.

  7. Choose the folder you want to save the ISO to and start the download.

  8. Mount the downloaded Windows 10 ISO (Right-click > Mount).

  9. Copy the install.esd file located in the sources folder to a safe place.

  10. Open cmd (Right-click > Run as administrator).

  11. Run dism /Get-WimInfo /WimFile:install.esd. You'll need replace the path to install.esd as necessary.

  12. Take note of the index of the particular OS version you'd like to install, the number is what is inserted in the SourceIndex below.

  13. Run dism /export-image /SourceImageFile:install.esd /SourceIndex:1 /DestinationImageFile:install.wim /Compress:max /CheckIntegrity. You'll need to replace the paths as necessary.

  14. Run DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Path to Install.wim:1 /LimitAccess. You'll need to replace the path to install.wim as necessary and the SourceIndex.

  15. Run sfc /scannow