autounattend.xml 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Unattended install for winvm.sh: wipes disk 0, local account "we" (password "we") logged on automatically,
  3. no online account or network questions. The LabConfig keys are a fallback in case the setup's TPM/Secure Boot
  4. check refuses the VM (OVMF without Secure Boot here). -->
  5. <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
  6. <settings pass="windowsPE">
  7. <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  8. <SetupUILanguage><UILanguage>en-US</UILanguage></SetupUILanguage>
  9. <InputLocale>en-US</InputLocale>
  10. <SystemLocale>en-US</SystemLocale>
  11. <UILanguage>en-US</UILanguage>
  12. <UserLocale>en-US</UserLocale>
  13. </component>
  14. <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  15. <RunSynchronous>
  16. <RunSynchronousCommand wcm:action="add"><Order>1</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand>
  17. <RunSynchronousCommand wcm:action="add"><Order>2</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand>
  18. <RunSynchronousCommand wcm:action="add"><Order>3</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand>
  19. <RunSynchronousCommand wcm:action="add"><Order>4</Order><Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path></RunSynchronousCommand>
  20. </RunSynchronous>
  21. <DiskConfiguration>
  22. <Disk wcm:action="add">
  23. <DiskID>0</DiskID>
  24. <WillWipeDisk>true</WillWipeDisk>
  25. <CreatePartitions>
  26. <CreatePartition wcm:action="add"><Order>1</Order><Type>EFI</Type><Size>300</Size></CreatePartition>
  27. <CreatePartition wcm:action="add"><Order>2</Order><Type>MSR</Type><Size>16</Size></CreatePartition>
  28. <CreatePartition wcm:action="add"><Order>3</Order><Type>Primary</Type><Extend>true</Extend></CreatePartition>
  29. </CreatePartitions>
  30. <ModifyPartitions>
  31. <ModifyPartition wcm:action="add"><Order>1</Order><PartitionID>1</PartitionID><Format>FAT32</Format><Label>System</Label></ModifyPartition>
  32. <ModifyPartition wcm:action="add"><Order>2</Order><PartitionID>3</PartitionID><Format>NTFS</Format><Label>Windows</Label><Letter>C</Letter></ModifyPartition>
  33. </ModifyPartitions>
  34. </Disk>
  35. </DiskConfiguration>
  36. <ImageInstall>
  37. <OSImage>
  38. <InstallFrom><MetaData wcm:action="add"><Key>/IMAGE/INDEX</Key><Value>1</Value></MetaData></InstallFrom>
  39. <InstallTo><DiskID>0</DiskID><PartitionID>3</PartitionID></InstallTo>
  40. </OSImage>
  41. </ImageInstall>
  42. <UserData>
  43. <AcceptEula>true</AcceptEula>
  44. <ProductKey><WillShowUI>Never</WillShowUI></ProductKey>
  45. </UserData>
  46. </component>
  47. </settings>
  48. <settings pass="specialize">
  49. <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  50. <ComputerName>WEVM</ComputerName>
  51. <TimeZone>W. Europe Standard Time</TimeZone>
  52. </component>
  53. <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" 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="amd64" 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="amd64" 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>we</Name>
  78. <Group>Administrators</Group>
  79. <Password><Value>we</Value><PlainText>true</PlainText></Password>
  80. </LocalAccount>
  81. </LocalAccounts>
  82. </UserAccounts>
  83. <AutoLogon>
  84. <Enabled>true</Enabled>
  85. <Username>we</Username>
  86. <Password><Value>we</Value><PlainText>true</PlainText></Password>
  87. <LogonCount>999999</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) do if exist %d:\firstlogon.ps1 powershell -ExecutionPolicy Bypass -File %d:\firstlogon.ps1</CommandLine>
  93. </SynchronousCommand>
  94. </FirstLogonCommands>
  95. </component>
  96. </settings>
  97. </unattend>