I am looking for a way to apply an autounattend.xml/unattend.xml after the image has been deployed with Dism to bypass OOBE:
- I have deployed a Windows image with
Dism, adding theautoattend.xmltoWindows\Panther, as well asWindows/System32/sysprep, but neither of these worked - If I make a bootable USB and paste the
autounattend.xmlin the USB's root before installation, it works
1 Answer
You can't, as the unattend.xml is used by Windows Setup, not Dism:
- Windows is installed in seven phases (incl.
generalize), with the answer file being applied to the offline image duringofflineServicingandspecialize, which occurs beforeauditSystem,auditUser, andoobeSystem:- Upon selecting Install:
windowsPE - Setup boots to WinPE:
offlineServicing,specialize - Setup boots to applied image:
auditSystem,auditUser,oobeSystem
- Upon selecting Install:
What you're attempting to do is called an LTI/ZTI [Lite/Zero Touch Install]:
- Mount the WinPE
boot.wim→ Copyunatennd.xmltoWindows\Panther→ Unmount image - Boot the
boot.wimeither: