HaRD
Member
Hello everyone,
I am going at this already for almost a week and I am stuck at this point.
As the topic title suggests, I am attempting to create completely zero-touch Windows 11 Enterprise installation; tThrough autounattend.xml answer file I've managed to automate W11 installation itself; that's fine, works as intended. However, my aim is little more zero-touch installation at this point, as I would like to run custom script for driver installation & windows updates as well - basically, I need to run custom script right after completed system installation, where OS boots into OOBE. Currently I am doing that manually in OOBE via Shift + F10 via command prompt - surely there must be a way to skip this and completely automate this step?
Due to the hardware which is being installed being later put through Autopilot and in being in enterprise, I am quite limited at the options available to me.
Tried:
- adding this as part of answer file; seems like this way it will work only AFTER the user logs in, or after OOBE and before user logon; this does not works for me, as I need to prep the devices before user logon
- looked at solutions in this topic: Start a powershell script at the end of Windows 10 installation? - does not work for me as well; 1. solution - SetupComplete.cmd - does not work after clean OS installation from VLSC ISO image USB media; would work after logon. 2. solution - via unattend.xml - same issue; works only after sysprep, not out of the box clean installation. 3. solution - same.
I have worked out how to copy the scripts I need from installation media thanks to this guide $OEM$ folders, but executing them AFTER setup reboot in OOBE - that seems to be challenge.
So - stuck at this point.
Does anyone have working solution for this? Also, autounattended.xml I am currently using below:
I am going at this already for almost a week and I am stuck at this point.
As the topic title suggests, I am attempting to create completely zero-touch Windows 11 Enterprise installation; tThrough autounattend.xml answer file I've managed to automate W11 installation itself; that's fine, works as intended. However, my aim is little more zero-touch installation at this point, as I would like to run custom script for driver installation & windows updates as well - basically, I need to run custom script right after completed system installation, where OS boots into OOBE. Currently I am doing that manually in OOBE via Shift + F10 via command prompt - surely there must be a way to skip this and completely automate this step?
Due to the hardware which is being installed being later put through Autopilot and in being in enterprise, I am quite limited at the options available to me.
Tried:
- adding this as part of answer file; seems like this way it will work only AFTER the user logs in, or after OOBE and before user logon; this does not works for me, as I need to prep the devices before user logon
- looked at solutions in this topic: Start a powershell script at the end of Windows 10 installation? - does not work for me as well; 1. solution - SetupComplete.cmd - does not work after clean OS installation from VLSC ISO image USB media; would work after logon. 2. solution - via unattend.xml - same issue; works only after sysprep, not out of the box clean installation. 3. solution - same.
I have worked out how to copy the scripts I need from installation media thanks to this guide $OEM$ folders, but executing them AFTER setup reboot in OOBE - that seems to be challenge.
So - stuck at this point.
Does anyone have working solution for this? Also, autounattended.xml I am currently using below:
Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>cs-CZ</UILanguage>
</SetupUILanguage>
<InputLocale>0405:00000405</InputLocale>
<SystemLocale>cs-CZ</SystemLocale>
<UILanguage>cs-CZ</UILanguage>
<UserLocale>cs-CZ</UserLocale>
<UILanguageFallback>en-US</UILanguageFallback>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>1024</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Size>100</Size>
<Type>EFI</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>3</Order>
<Size>16</Size>
<Type>MSR</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>4</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>WinRE</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
<TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>FAT32</Format>
<Label>System</Label>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>3</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Windows</Label>
<Letter>C</Letter>
<Order>4</Order>
<PartitionID>4</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<WillWipeDisk>true</WillWipeDisk>
<DiskID>0</DiskID>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>4</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<Key>NPPR9-FWDCX-D2C8J-H872K-2YT43</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
</UserData>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:d:/iso_files/sources/install.wim#Windows 11 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
- Windows Build/Version
- Windows 11 23H2
My Computer
System One
-
- OS
- Windows 10
- Computer type
- PC/Desktop
- CPU
- Ryzen 7 5800X3d
- Motherboard
- Gigabyte X570S UD
- Memory
- 32 GB
- Graphics Card(s)
- Sapphire AMD Radeon RX 6800 XT NITRO+
- Sound Card
- ASUS Xonar Essence STX II
- Monitor(s) Displays
- 2x HP Z27 G2
- Screen Resolution
- 1440p
- Hard Drives
- 1x Samsung SSD 970 PRO 1 TB, 2x Samsung SSD 830 PRO 128 GB RAID 0, 1x Seagate Barracude 2 TB
- PSU
- Seasonic Prime PX-1000 Platinum
- Case
- Fractal Design XL R2
- Cooling
- Noctua NH-D15 chromax.black
- Internet Speed
- WiFi 100/100
- Browser
- Firefox
- Antivirus
- Windows Defender