question

ChetarRuby avatar image
0 Votes"
ChetarRuby asked JennyFeng-MSFT commented

How to generate install.esd, or have setup use install.wim

I recently acquired the 21H1 iso image to regenerate my deployment images and ran into a snag when attempting to add a recovery partition to the image that allows the user to reinstall windows from installation media included in the image.

Basically, previous to 21H1, the iso images contained a 'install.wim' archive within the 'sources' subfolder of the installation media. I am using DISM to capture my installed and re-sealed via sysprep copy of Windows 10 with customizations. This generates a new install.wim image I can put onto the installation media.

21H1's installation media has changed from using install.wim, to using install.esd. I cannot find any information on generating an esd file, as they appear to be encrypted or something? I'm a bit confused about the matter. But the end result is, when I delete the install.esd file from the sources folder and replace it with a install.wim, the installation media simply doesn't work anymore.

To be clear, this is what I'm doing:
1. Install Windows 10 from original ISO
2. Boot the install, enter AUDIT mode.
3. Check for updates, install a few applications, make a few profile changes to the administrator account.
4. Use Sysprep to return the installation to 'uninstalled' OOBE mode so next boot will re-initiate hardware detect and OOBE.
5. Use DISM to capture the modified Windows to a new install.wim.
6. Copy new install.wim to the original ISO, removing install.esd

When I copy the new install.wim (removing install.esd from the install media as well) back to the installation media, the resulting new ISO doesn't work, setup complains a device driver must be missing cuz it can't find anything to work with.

All of these steps are being done in a virtual machine (VirtualBox)

Any tips or suggestions, or references to documentation on how to do this properly would be greatly appeciated. Thanks for reading!

windows-10-setup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered JennyFeng-MSFT commented

@ChetarRuby
Hi,
From your description, it seems you tried to boot your 21H1 image including (install.wim) which has been modified and captured by DISM. However it didn't work, as you suppose that 21HI.ISO might only support install.esd from Sources folder. Hereby I suggest you try the following operations to convert file format.

You could Convert ESD file to WIM using DISM in Windows 10
https://www.tenforums.com/tutorials/95308-convert-esd-file-wim-using-dism-windows-10-a.html?cf_chl_jschl_tk=22403c31866ef49eacc8c8df353427d237348407-1594014497-0-AfAVFmu664zt70i9FHsGs-h5vmLfENuIPSkILPeunDoEDxojsW7vEW0WU6wcSc4c0K5IpLN3Z8xhLZ-6-eciyClTALZK0IawFvrRrMDXdVGyq0EVoKroXL1XdIf32hWGN7a-XBjArT7b-gUfcEzVvsEEoDOCnFkeyNPDWrdDMgpWTQdknbjDHGjzqs1gkhIBXo1Vfs8MQBliaCLi4M53TgYivI1NKp04fRWM6qJcCniaRl75I7-7zZVbN761BkWN2uDoTbuUW-MQcS-xwloaHXLaRgU2jCopW8WNAiLoiI3y-0w2hH4IVEnfRLU5CC-6-0arbPrzLHlJnVD9yQ08ygkM7TsFvzDSw4jQS9TgdBnT

Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Hope above information can help you.

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the reply. I did see how to do that on Google, but unless I'm missing something, that's not going to work.

Maybe I didn't make the procedure I'm doing clear. Let me lay out what I've been doing for a while now: (I am doing all this in a virtual machine, if that matters.)

  1. Install Windows 10 from original ISO

  2. Boot the install, enter AUDIT mode.

  3. Check for updates, install a few applications, make a few profile changes to the administrator account.

  4. Use Sysprep to return the installation to 'uninstalled' OOBE mode so next boot will re-initiate setup.

  5. Use DISM to capture the modified Windows to a new install.wim.

  6. Copy new install.wim to the original ISO, removing install.esd

Now previously, the original ISO's contained install.wim, and this worked fine, never a problem. 21H1 has changed the install media to use install.esd, and when I replace that with my install.wim, the installation media does not work.



0 Votes 0 ·

Thanks for elaborating your procedure, If you want to convert file format from intall.wim to install.esd, you can run the following dism command by powershell

dism /export-image /sourceimagefile:<file location>:\install.wim /sourceindex:<1,2,3,4> /destinationimagefile:<output location>:\install.esd /compress:recovery

Sincerely hope this will help you.

1 Vote 1 ·