If the user needs to replace the hard drive, or completely wipe it, they can use bootable recovery media. Bare-metal recovery performs these processes:
1. The PC boots into Windows RE.
2. Push-button reset identifies the system drive.
3. Push-button reset re-creates and formats each of the partitions specified in the diskpart script.
4. Push-button reset applies the factory image file to the Windows partition.
5. Push-button reset configures Windows RE and the recovery image on the disk.
6. Windows restarts into the OOBE.
There is Shrink the Push-Button for .WIM
Convert the image from .WIM to .ESD
Export the image into a separate file:
dism /Export-Image /SourceImageFile:"MyImageFile.wim" /SourceIndex:1 /DestinationImageFile:"install.esd" /Compress:recoveryThe push-button reset feature recognizes the filenames: install.wim, install.esd, and install.swm.
Also i know that here are several forms of ESD files, some are encrypted, others are not.
How to do the opposite process ?
I doubt that the *.ESD (i have here for exam) is in fact some variant of *.WIM.TAR.GPG and encrypted with 2 stage algorithm, or even CipherSaber