Wednesday, January 2, 2019

ESD to WIM conversion

Convert the install file from your windows 10 install media (iso, dvd) from esd to wim format.

1) Get the right version:
DISM /Get-WimInfo /wimfile:d:\sources\install.esd


2) convert the image from source to destination with the index from your version:
DISM /Export-Image /SourceImageFile:d:\sources\install.esd /SourceIndex:5 /DestinationImageFile:c:\ESD\install.wim /Compress:Max /CheckIntegrity

when using with DISM to /RestoreHealth append the right index-number to the source-path:
DISM /Online /Cleanup-Image /RestoreHealth /Source:Wim:c:\ESD\install.wim:5 /limitaccess