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.
Try this.
md C:\test\offline
DISM.exe /Mount-Wim /WimFile:e:\sources\install.wim /index:2 /MountDir:C:\test\offline /ReadOnly
Dism.exe /Online /Cleanup-Image /restoreHealth /source:C:\test\offline /loglevel:4
When you are done.
DISM.exe /Unmount-Wim /MountDir:C:\test\offline /discard
No comments:
Post a Comment