Unattended Windows ISO install
Unattended Windows ISO install
# Unpack ISO to d:\iso_unpacked\
# get list of indexes from your ISO and pick one you want to unattend
Get-WindowsImage -ImagePath "d:\iso_unpacked\sources\install.wim"
# Mount wim
mkdir "d:\mount"
# here you must specify index from above commands
Mount-WindowsImage -ImagePath "d:\iso_unpacked\sources\install.wim" -Path "d:\mount" -Index 1
# copy unattent.xml to Panther folder
mkdir "D:\mount\Windows\Panther"
Copy-Item "c:\Users\admin\Documents\unattend.xml" -destination d:\mount\Windows\Panther\unattend.xml
# Save and Dismount
Dismount-WindowsImage -Path "d:\mount" -Save
#Dismount-WindowsImage -Path "d:\mount" -Discard # if problem
# In case you have error unmounting, then you can clean it and start over
dism /cleanup-wim
# convert wim to iso
# prepare directory
mkdir d:\wim_to_iso
# run ADK command line
C:\Windows\system32\cmd.exe /k "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat"
# paste there
oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bd:\iso_unpacked\boot\etfsboot.com#pEF,e,bd:\iso_unpacked\efi\microsoft\boot\efisys.bin d:\iso_unpacked d:\wim_to_iso\wim_to_iso.iso