Files
windows-builder/includes/autounattend-win10.xml
2026-06-02 03:37:09 -07:00

86 lines
5.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<!-- Windows PE Configuration -->
<settings pass="windowsPE">
<!-- Windows Setup Configuration -->
<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">
<!-- Auto select the first image at index 1 as the install source -->
<ImageInstall>
<OSImage>
<Compact>true</Compact>
<WillShowUI>OnError</WillShowUI>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
<UserData>
<!-- Auto accept windows EULA -->
<AcceptEula>true</AcceptEula>
<!-- Set the product key to the default windows 10 generic key (this is required to skip the product key page during setup, but it will not activate windows) -->
<ProductKey>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
</ProductKey>
</UserData>
</component>
<!-- Windows PE PNP Configuration -->
<component name="Microsoft-Windows-PnpCustomizationsWinPE" 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">
<!-- Auto drivers to windowsPE if the WinPE_Drivers folder exists -->
<DriverPaths>
<PathAndCredentials wcm:keyValue="1" wcm:action="add">
<Path>WinPE_Drivers</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
<!-- Specialize Windows install -->
<settings pass="specialize">
<!-- Windows Deployment Configuration -->
<component name="Microsoft-Windows-Deployment" 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">
<RunSynchronous>
<!-- Detect Bootcamp folder for drivers when installing on mac hardware -->
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c "FOR %i IN (X F E D C) DO (FOR /F "tokens=6" %t in ('vol %i:') do (IF /I %t NEQ "" (IF EXIST %i:\BootCamp\BootCamp.xml Reg ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v AppsRoot /t REG_SZ /d %i /f )))"</Path>
</RunSynchronousCommand>
<!-- Run SetupComplete.cmd durring deployment (this has been commented out as all editions of windows will run this script) -->
<!--<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>%WINDIR%\Setup\Scripts\SetupComplete.cmd</Path>
<WillReboot>Never</WillReboot>
</RunSynchronousCommand>-->
</RunSynchronous>
</component>
</settings>
<!-- OOBE Configuration -->
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-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">
<!-- Auto skip/hide the following pages in the OOBE -->
<OOBE>
<ProtectYourPC>3</ProtectYourPC>
<HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
</OOBE>
<!-- Set the OEM information for the PC -->
<OEMInformation>
<Manufacturer>oxmc</Manufacturer>
<SupportProvider>oxmc-servers support</SupportProvider>
<SupportURL>https://cdn.oxmc.me/contact?ref=cwin</SupportURL>
</OEMInformation>
<!-- First logon commands to run when a user logs in for the first time -->
<FirstLogonCommands>
<!-- Setup user -->
<SynchronousCommand wcm:action="add">
<Description>First run setup</Description>
<CommandLine>powershell.exe -ExecutionPolicy Bypass -File %WINDIR%\OEM\setup\scripts\setup-user.ps1</CommandLine>
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
</unattend>