https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/mount-and-modify-a-windows-image-using-dism?view=windows-11
DISM /Mount-image /imagefile:D:\sources\boot.wim /index:1 /MountDir:c:\TempPE
DISM /Mount-image /imagefile: {/Index: | /Name:} /MountDir: [/readonly] /[optimize]}
You can then make changes
Save those changes:
Dism /Unmount-image /MountDir:C:\TempPE /Commit
Dism /Unmount-image /MountDir: {/Commit | /Discard}
Keywords: WinPE, Mount, Image, .WIM, Unmount |