1
0

autounattend.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <unattend xmlns="urn:schemas-microsoft-com:unattend"
  3. xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <settings pass="windowsPE">
  6. <component name="Microsoft-Windows-International-Core-WinPE"
  7. processorArchitecture="amd64"
  8. publicKeyToken="31bf3856ad364e35"
  9. language="en-US"
  10. versionScope="nonSxS">
  11. <SetupUILanguage>
  12. <UILanguage>en-US</UILanguage>
  13. </SetupUILanguage>
  14. <InputLocale>en-US</InputLocale>
  15. <SystemLocale>en-US</SystemLocale>
  16. <UILanguage>en-US</UILanguage>
  17. <UserLocale>en-US</UserLocale>
  18. </component>
  19. <component name="Microsoft-Windows-Setup"
  20. processorArchitecture="amd64"
  21. publicKeyToken="31bf3856ad364e35"
  22. language="en-US"
  23. versionScope="nonSxS">
  24. <DiskConfiguration>
  25. <Disk wcm:action="add">
  26. <DiskID>0</DiskID>
  27. <WillWipeDisk>true</WillWipeDisk>
  28. <CreatePartitions>
  29. <CreatePartition wcm:action="add">
  30. <Order>1</Order>
  31. <Type>Primary</Type>
  32. <Size>500</Size>
  33. </CreatePartition>
  34. <CreatePartition wcm:action="add">
  35. <Order>2</Order>
  36. <Type>Primary</Type>
  37. <Extend>true</Extend>
  38. </CreatePartition>
  39. </CreatePartitions>
  40. <ModifyPartitions>
  41. <ModifyPartition wcm:action="add">
  42. <Order>1</Order>
  43. <PartitionID>1</PartitionID>
  44. <Active>true</Active>
  45. <Format>NTFS</Format>
  46. <Label>System Reserved</Label>
  47. </ModifyPartition>
  48. <ModifyPartition wcm:action="add">
  49. <Order>2</Order>
  50. <PartitionID>2</PartitionID>
  51. <Format>NTFS</Format>
  52. <Label>Windows</Label>
  53. <Letter>C</Letter>
  54. </ModifyPartition>
  55. </ModifyPartitions>
  56. </Disk>
  57. <WillShowUI>OnError</WillShowUI>
  58. </DiskConfiguration>
  59. <DynamicUpdate>
  60. <Enable>false</Enable>
  61. <WillShowUI>Never</WillShowUI>
  62. </DynamicUpdate>
  63. <ImageInstall>
  64. <OSImage>
  65. <InstallFrom>
  66. <MetaData wcm:action="add">
  67. <Key>/IMAGE/INDEX</Key>
  68. <Value>1</Value>
  69. </MetaData>
  70. </InstallFrom>
  71. <InstallTo>
  72. <DiskID>0</DiskID>
  73. <PartitionID>2</PartitionID>
  74. </InstallTo>
  75. <WillShowUI>OnError</WillShowUI>
  76. </OSImage>
  77. </ImageInstall>
  78. <UserData>
  79. <AcceptEula>true</AcceptEula>
  80. <FullName>PCL Lab</FullName>
  81. <Organization>PCLPoC Lab</Organization>
  82. <ProductKey>
  83. <Key>M7XTQ-FN8P6-TTKYV-9D4CC-J462D</Key>
  84. <WillShowUI>Never</WillShowUI>
  85. </ProductKey>
  86. </UserData>
  87. </component>
  88. </settings>
  89. <settings pass="specialize">
  90. <component name="Microsoft-Windows-Shell-Setup"
  91. processorArchitecture="amd64"
  92. publicKeyToken="31bf3856ad364e35"
  93. language="en-US"
  94. versionScope="nonSxS">
  95. <ComputerName>PCL-LTSC</ComputerName>
  96. <TimeZone>China Standard Time</TimeZone>
  97. <RegisteredOwner>PCL Lab</RegisteredOwner>
  98. <RegisteredOrganization>PCLPoC Lab</RegisteredOrganization>
  99. </component>
  100. <component name="Microsoft-Windows-Deployment"
  101. processorArchitecture="amd64"
  102. publicKeyToken="31bf3856ad364e35"
  103. language="en-US"
  104. versionScope="nonSxS">
  105. <RunSynchronous>
  106. <RunSynchronousCommand wcm:action="add">
  107. <Order>1</Order>
  108. <Description>Disable UAC</Description>
  109. <Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f</Path>
  110. </RunSynchronousCommand>
  111. <RunSynchronousCommand wcm:action="add">
  112. <Order>2</Order>
  113. <Description>Disable UAC consent prompt</Description>
  114. <Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f</Path>
  115. </RunSynchronousCommand>
  116. <RunSynchronousCommand wcm:action="add">
  117. <Order>3</Order>
  118. <Description>Disable firewall</Description>
  119. <Path>cmd /c netsh advfirewall set allprofiles state off</Path>
  120. </RunSynchronousCommand>
  121. <RunSynchronousCommand wcm:action="add">
  122. <Order>4</Order>
  123. <Description>Disable SmartScreen</Description>
  124. <Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f</Path>
  125. </RunSynchronousCommand>
  126. <RunSynchronousCommand wcm:action="add">
  127. <Order>5</Order>
  128. <Description>Disable SmartScreen policy</Description>
  129. <Path>cmd /c reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 0 /f</Path>
  130. </RunSynchronousCommand>
  131. <RunSynchronousCommand wcm:action="add">
  132. <Order>6</Order>
  133. <Description>Disable Defender realtime policy</Description>
  134. <Path>cmd /c reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f</Path>
  135. </RunSynchronousCommand>
  136. <RunSynchronousCommand wcm:action="add">
  137. <Order>7</Order>
  138. <Description>Disable Windows Update</Description>
  139. <Path>cmd /c reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f</Path>
  140. </RunSynchronousCommand>
  141. <RunSynchronousCommand wcm:action="add">
  142. <Order>8</Order>
  143. <Description>Disable hibernate</Description>
  144. <Path>cmd /c powercfg /hibernate off</Path>
  145. </RunSynchronousCommand>
  146. <RunSynchronousCommand wcm:action="add">
  147. <Order>9</Order>
  148. <Description>High performance power plan</Description>
  149. <Path>cmd /c powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</Path>
  150. </RunSynchronousCommand>
  151. <RunSynchronousCommand wcm:action="add">
  152. <Order>10</Order>
  153. <Description>Disable monitor and standby timeouts</Description>
  154. <Path>cmd /c powercfg /change monitor-timeout-ac 0</Path>
  155. </RunSynchronousCommand>
  156. <RunSynchronousCommand wcm:action="add">
  157. <Order>11</Order>
  158. <Description>Disable standby timeout</Description>
  159. <Path>cmd /c powercfg /change standby-timeout-ac 0</Path>
  160. </RunSynchronousCommand>
  161. <RunSynchronousCommand wcm:action="add">
  162. <Order>12</Order>
  163. <Description>Defender exclusions</Description>
  164. <Path>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Add-MpPreference -ExclusionPath 'C:\PCLPoC','C:\Users\lab\Desktop\PCL','C:\Users\Public' -ErrorAction SilentlyContinue"</Path>
  165. </RunSynchronousCommand>
  166. </RunSynchronous>
  167. </component>
  168. </settings>
  169. <settings pass="oobeSystem">
  170. <component name="Microsoft-Windows-International-Core"
  171. processorArchitecture="amd64"
  172. publicKeyToken="31bf3856ad364e35"
  173. language="en-US"
  174. versionScope="nonSxS">
  175. <InputLocale>en-US</InputLocale>
  176. <SystemLocale>en-US</SystemLocale>
  177. <UILanguage>en-US</UILanguage>
  178. <UserLocale>en-US</UserLocale>
  179. </component>
  180. <component name="Microsoft-Windows-Shell-Setup"
  181. processorArchitecture="amd64"
  182. publicKeyToken="31bf3856ad364e35"
  183. language="en-US"
  184. versionScope="nonSxS">
  185. <OOBE>
  186. <HideEULAPage>true</HideEULAPage>
  187. <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
  188. <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
  189. <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
  190. <NetworkLocation>Work</NetworkLocation>
  191. <ProtectYourPC>3</ProtectYourPC>
  192. <SkipMachineOOBE>true</SkipMachineOOBE>
  193. <SkipUserOOBE>true</SkipUserOOBE>
  194. </OOBE>
  195. <UserAccounts>
  196. <LocalAccounts>
  197. <LocalAccount wcm:action="add">
  198. <Password>
  199. <Value>PclPoC!2026</Value>
  200. <PlainText>true</PlainText>
  201. </Password>
  202. <Description>PCL PoC lab account</Description>
  203. <DisplayName>PCL Lab</DisplayName>
  204. <Group>Administrators</Group>
  205. <Name>lab</Name>
  206. </LocalAccount>
  207. </LocalAccounts>
  208. </UserAccounts>
  209. <AutoLogon>
  210. <Password>
  211. <Value>PclPoC!2026</Value>
  212. <PlainText>true</PlainText>
  213. </Password>
  214. <Enabled>true</Enabled>
  215. <LogonCount>999</LogonCount>
  216. <Username>lab</Username>
  217. </AutoLogon>
  218. <FirstLogonCommands>
  219. <SynchronousCommand wcm:action="add">
  220. <Order>1</Order>
  221. <Description>Start PCL PoC demo</Description>
  222. <CommandLine>cmd.exe /c "for %d in (C D E F G H I J K) do @if exist %d:\pcl-test\firstlogon.cmd call %d:\pcl-test\firstlogon.cmd"</CommandLine>
  223. <RequiresUserInput>false</RequiresUserInput>
  224. </SynchronousCommand>
  225. </FirstLogonCommands>
  226. <TimeZone>China Standard Time</TimeZone>
  227. </component>
  228. </settings>
  229. </unattend>