| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> |
| 3 | <settings pass="windowsPE"> |
| 4 | <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 5 | <SetupUILanguage><UILanguage>en-US</UILanguage></SetupUILanguage> |
| 6 | <InputLocale>en-US</InputLocale> |
| 7 | <SystemLocale>en-US</SystemLocale> |
| 8 | <UILanguage>en-US</UILanguage> |
| 9 | <UserLocale>en-US</UserLocale> |
| 10 | </component> |
| 11 | <component name="Microsoft-Windows-Setup" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 12 | <!-- The lab has no TPM or Secure Boot; Windows 10 ignores these keys. --> |
| 13 | <RunSynchronous> |
| 14 | <RunSynchronousCommand wcm:action="add"><Order>1</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand> |
| 15 | <RunSynchronousCommand wcm:action="add"><Order>2</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand> |
| 16 | <RunSynchronousCommand wcm:action="add"><Order>3</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand> |
| 17 | </RunSynchronous> |
| 18 | <DiskConfiguration> |
| 19 | <Disk wcm:action="add"> |
| 20 | <DiskID>0</DiskID> |
| 21 | <WillWipeDisk>true</WillWipeDisk> |
| 22 | <CreatePartitions> |
| 23 | <CreatePartition wcm:action="add"><Order>1</Order><Type>EFI</Type><Size>300</Size></CreatePartition> |
| 24 | <CreatePartition wcm:action="add"><Order>2</Order><Type>MSR</Type><Size>16</Size></CreatePartition> |
| 25 | <CreatePartition wcm:action="add"><Order>3</Order><Type>Primary</Type><Extend>true</Extend></CreatePartition> |
| 26 | </CreatePartitions> |
| 27 | <ModifyPartitions> |
| 28 | <ModifyPartition wcm:action="add"><Order>1</Order><PartitionID>1</PartitionID><Format>FAT32</Format><Label>System</Label></ModifyPartition> |
| 29 | <ModifyPartition wcm:action="add"><Order>2</Order><PartitionID>2</PartitionID></ModifyPartition> |
| 30 | <ModifyPartition wcm:action="add"><Order>3</Order><PartitionID>3</PartitionID><Format>NTFS</Format><Label>Windows</Label><Letter>C</Letter></ModifyPartition> |
| 31 | </ModifyPartitions> |
| 32 | </Disk> |
| 33 | </DiskConfiguration> |
| 34 | <!-- Choosing the image by index is what lets setup continue without a product key. --> |
| 35 | <ImageInstall> |
| 36 | <OSImage> |
| 37 | <InstallFrom><MetaData wcm:action="add"><Key>/IMAGE/INDEX</Key><Value>1</Value></MetaData></InstallFrom> |
| 38 | <InstallTo><DiskID>0</DiskID><PartitionID>3</PartitionID></InstallTo> |
| 39 | </OSImage> |
| 40 | </ImageInstall> |
| 41 | <UserData> |
| 42 | <AcceptEula>true</AcceptEula> |
| 43 | <FullName>one</FullName> |
| 44 | <Organization>Snowbound lab</Organization> |
| 45 | </UserData> |
| 46 | </component> |
| 47 | </settings> |
| 48 | <settings pass="specialize"> |
| 49 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 50 | <ComputerName>{hostname}</ComputerName> |
| 51 | <TimeZone>UTC</TimeZone> |
| 52 | </component> |
| 53 | <component name="Microsoft-Windows-Deployment" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 54 | <RunSynchronous> |
| 55 | <RunSynchronousCommand wcm:action="add"><Order>1</Order><Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand> |
| 56 | </RunSynchronous> |
| 57 | </component> |
| 58 | </settings> |
| 59 | <settings pass="oobeSystem"> |
| 60 | <component name="Microsoft-Windows-International-Core" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 61 | <InputLocale>en-US</InputLocale> |
| 62 | <SystemLocale>en-US</SystemLocale> |
| 63 | <UILanguage>en-US</UILanguage> |
| 64 | <UserLocale>en-US</UserLocale> |
| 65 | </component> |
| 66 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="{arch}" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> |
| 67 | <OOBE> |
| 68 | <HideEULAPage>true</HideEULAPage> |
| 69 | <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> |
| 70 | <HideOnlineAccountScreens>true</HideOnlineAccountScreens> |
| 71 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> |
| 72 | <ProtectYourPC>3</ProtectYourPC> |
| 73 | </OOBE> |
| 74 | <UserAccounts> |
| 75 | <LocalAccounts> |
| 76 | <LocalAccount wcm:action="add"> |
| 77 | <Name>one</Name> |
| 78 | <Group>Administrators</Group> |
| 79 | <Password><Value>one</Value><PlainText>true</PlainText></Password> |
| 80 | </LocalAccount> |
| 81 | </LocalAccounts> |
| 82 | </UserAccounts> |
| 83 | <AutoLogon> |
| 84 | <Enabled>true</Enabled> |
| 85 | <Username>one</Username> |
| 86 | <Password><Value>one</Value><PlainText>true</PlainText></Password> |
| 87 | <LogonCount>9999999</LogonCount> |
| 88 | </AutoLogon> |
| 89 | <FirstLogonCommands> |
| 90 | <SynchronousCommand wcm:action="add"> |
| 91 | <Order>1</Order> |
| 92 | <CommandLine>cmd /c for %d in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %d:\lab-setup.cmd %d:\lab-setup.cmd</CommandLine> |
| 93 | </SynchronousCommand> |
| 94 | </FirstLogonCommands> |
| 95 | </component> |
| 96 | </settings> |
| 97 | </unattend> |