You can follow any one of these 4 method to convert install.esd to install.wim file in Windows 11/10 - DISM, PowerShell, CMD, NTLite.