Tuesday, July 19, 2022

Using DISM offline

Ref: https://www.neowin.net/forum/topic/1399493-how-do-i-use-the-dism-command-with-a-downloaded-iso-of-win10/

This worked when the below one wouldn't even mount the .wim file.  Downloaded a Win2012r2 ISO, mounted it to D: then ran:

dism /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /limitaccess

 

Ref: https://docs.microsoft.com/en-us/answers/questions/269141/dism-not-finding-source.html

The "/index:2" might vary from 1..4?  But 2 worked for me.

MotoX80 answered

Try this.

  1. md C:\test\offline
  2. DISM.exe /Mount-Wim /WimFile:e:\sources\install.wim /index:2 /MountDir:C:\test\offline /ReadOnly
  3. Dism.exe /Online /Cleanup-Image /restoreHealth /source:C:\test\offline /loglevel:4

When you are done.

  1. DISM.exe /Unmount-Wim /MountDir:C:\test\offline /discard

No comments:

Post a Comment

Powershell

Connect to your 365 instance. You have to do connect first, always.  Powershell ISE can't be used.  If you try you'll get a "A ...