Build a Custom Windows Image
DISM - Convert install.esd to install.wim
Download Windows 10
๐ https://www.microsoft.com/en-us/software-download/windows10

Convert .ESD to .WIM
๐ https://theitbros.com/convert-windows-esd-file-to-windows-wim-file/
Copy ISO files, in the sources folder you should see the install.esd file. Run the below command to get a list of all versions of Windows on the install.esd
DISM /Get-WimInfo /WimFile:install.esd

I want to create a Windows 10 Pro image, so it's Index number 6, run the below command to convert the install.esd to install.wim
DISM /Export-Image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:max /CheckIntegrity
ย
Here is a video of the full process: