Hi, here is a Simple CMD Code to handle microsoft's original ESD file (encrypted or decrypted), to ease converting it into an usable state WiM file using Imagex (Wimlib).
<b>Note:</b> you need to download  Imagex (Wimlib) at SourceForge.net or Softpedia.

Enter these commands in sequence:

Code:

SET iNPUT=location where 'install.esd' is located
SET iNDEX=index number in 'install.esd' will be converted
SET OUTPUT=location where 'install.wim' will be saved
SET WimLib=location where 'wimlib-imagex.exe' is located
"%WimLib%" export "%iNPUT%" %iNDEX% "%OUTPUT%" --check --compress=LZX


for example:

Code:

@echo off
cls
SET iNPUT=D:\Projects\[DEV]\WiNAiO\WAiO.x86.HE-WR\sources\install.esd
SET iNDEX=1
SET OUTPUT=D:\Projects\[DEV]\WiNAiO\WAiO.x86.HE-WR\sources\install.wim
SET WimLib=D:\Projects\[DEV]\TOOLS\WimLib\wimlib-1.7.5-BETA1\wimlib-imagex.exe
"%WimLib%" export "%iNPUT%" %iNDEX% "%OUTPUT%" --check --compress=LZX


Show Screenshot :


for create (convert) compressed install.esd, i most prefer to use DiSM (on Windows 8.1 ONLY), it more smaller but take more time then Imagex (Wimlib).

Enter these commands in sequence:

Code:

@echo off
cls
SET iNPUT=location where 'install.wim' is located
SET iNDEX=index number in 'install.wim' will be converted
SET OUTPUT=location where 'install.esd' will be saved
SET WimLib=location where 'wimlib-imagex.exe' is located
DiSM /Export-Image /SourceImageFile:"%iNPUT%" /SourceIndex:2 /DestinationImageFile:"%OUTPUT%" /Compress:recovery /CheckIntegrity


Hope this helps some Smile