VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/win_nt6_unattended.xml@ 98123

Last change on this file since 98123 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 14.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2016-2023 Oracle and/or its affiliates.
4
5 This file is part of VirtualBox base platform packages, as
6 available from https://www.virtualbox.org.
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation, in version 3 of the
11 License.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, see <https://www.gnu.org/licenses>.
20
21 SPDX-License-Identifier: GPL-3.0-only
22-->
23<unattend xmlns="urn:schemas-microsoft-com:unattend"
24 xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
25
26 <settings pass="windowsPE">
27 <component name="Microsoft-Windows-International-Core-WinPE"
28 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
29 publicKeyToken="31bf3856ad364e35" language="neutral"
30 versionScope="nonSxS">
31 <InputLocale>en-US</InputLocale>
32 <SystemLocale>@@VBOX_INSERT_DASH_LOCALE@@</SystemLocale>
33 <UserLocale>@@VBOX_INSERT_DASH_LOCALE@@</UserLocale>
34 <!-- UILanguage must match the installation media language. Stuff like de-CH does not work for
35 example de_windows_7_enterprise_with_sp1_x64_dvd_u_677649.iso. However, stupidly we cannot
36 omit this element (kudos to brilliant minds at MS). -->
37 <UILanguage>@@VBOX_INSERT_LANGUAGE@@</UILanguage>
38 </component>
39
40 <component name="Microsoft-Windows-Setup"
41 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
42 publicKeyToken="31bf3856ad364e35" language="neutral"
43 versionScope="nonSxS">
44
45 <DiskConfiguration>
46 <WillShowUI>OnError</WillShowUI>
47 <Disk>
48 <DiskID>0</DiskID>
49 <WillWipeDisk>true</WillWipeDisk>
50@@VBOX_COND_IS_NOT_FIRMWARE_UEFI@@
51 <CreatePartitions>
52 <!-- TODO: Use the standard partitioning scheme at starting with Windows 8 maybe, using 2 partitions as described by Microsoft? -->
53 <CreatePartition>
54 <Order>1</Order>
55 <Type>Primary</Type>
56 <Extend>true</Extend>
57 </CreatePartition>
58 </CreatePartitions>
59@@VBOX_COND_END@@
60@@VBOX_COND_IS_FIRMWARE_UEFI@@
61 <CreatePartitions>
62 <CreatePartition wcm:action="add">
63 <Order>1</Order>
64 <Type>Primary</Type>
65 <Size>300</Size>
66 </CreatePartition>
67 <CreatePartition wcm:action="add">
68 <Order>2</Order>
69 <Type>EFI</Type>
70 <Size>100</Size>
71 </CreatePartition>
72 <CreatePartition wcm:action="add">
73 <Order>3</Order>
74 <Type>MSR</Type>
75 <Size>128</Size>
76 </CreatePartition>
77 <CreatePartition wcm:action="add">
78 <Order>4</Order>
79 <Type>Primary</Type>
80 <Extend>true</Extend>
81 </CreatePartition>
82 </CreatePartitions>
83 <ModifyPartitions>
84 <ModifyPartition wcm:action="add">
85 <Order>1</Order>
86 <PartitionID>1</PartitionID>
87 <Label>WINRE</Label>
88 <Format>NTFS</Format>
89 <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
90 </ModifyPartition>
91 <ModifyPartition wcm:action="add">
92 <Order>2</Order>
93 <PartitionID>2</PartitionID>
94 <Label>EFI</Label>
95 <Format>FAT32</Format>
96 </ModifyPartition>
97 <ModifyPartition wcm:action="add">
98 <Order>3</Order>
99 <PartitionID>3</PartitionID>
100 </ModifyPartition>
101 <ModifyPartition wcm:action="add">
102 <Order>4</Order>
103 <PartitionID>4</PartitionID>
104 <Label>Windows</Label>
105 <Letter>C</Letter>
106 <Format>NTFS</Format>
107 </ModifyPartition>
108 </ModifyPartitions>
109@@VBOX_COND_END@@
110 </Disk>
111 </DiskConfiguration>
112
113 <UserData>
114 <ProductKey>
115 <Key>@@VBOX_INSERT_PRODUCT_KEY_ELEMENT@@</Key>
116 <WillShowUI>OnError</WillShowUI>
117 </ProductKey>
118 <AcceptEula>true</AcceptEula>
119 </UserData>
120
121 <ImageInstall>
122 <OSImage>
123 <InstallFrom>
124 <!-- TODO: This stuff doesn't work for en_windows_vista_enterprise_sp1_x64_and_x86.iso ... -->
125 <MetaData wcm:action="add">
126 <Key>/IMAGE/INDEX</Key>
127 <Value>@@VBOX_INSERT_IMAGE_INDEX_ELEMENT@@</Value>
128 </MetaData>
129 <!-- <Path>d:\sources\install.wim</Path> - the w7 tests doesn't specify this -->
130 </InstallFrom>
131 <InstallTo>
132 <DiskID>0</DiskID>
133@@VBOX_COND_IS_NOT_FIRMWARE_UEFI@@
134 <PartitionID>1</PartitionID>
135@@VBOX_COND_END@@
136@@VBOX_COND_IS_FIRMWARE_UEFI@@
137 <PartitionID>4</PartitionID>
138@@VBOX_COND_END@@
139 </InstallTo>
140 <WillShowUI>OnError</WillShowUI>
141 <InstallToAvailablePartition>false</InstallToAvailablePartition>
142 </OSImage>
143 </ImageInstall>
144
145 <ComplianceCheck>
146 <DisplayReport>OnError</DisplayReport>
147 </ComplianceCheck>
148
149 <!-- Apply registry tweaks to Windows PE, skipping the checks in the Windows 11 setup program. This will not make it to the final install, and should do no harm with older Windows versions. -->
150 <RunAsynchronous>
151 <RunAsynchronousCommand>
152 <Order>1</Order>
153 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
154 <Description>Windows 11 disable CPU check</Description>
155 </RunAsynchronousCommand>
156 <RunAsynchronousCommand>
157 <Order>2</Order>
158 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
159 <Description>Windows 11 disable RAM check</Description>
160 </RunAsynchronousCommand>
161 <RunAsynchronousCommand>
162 <Order>3</Order>
163 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
164 <Description>Windows 11 disable Secure Boot check</Description>
165 </RunAsynchronousCommand>
166 <RunAsynchronousCommand>
167 <Order>4</Order>
168 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
169 <Description>Windows 11 disable Storage check</Description>
170 </RunAsynchronousCommand>
171 <RunAsynchronousCommand>
172 <Order>5</Order>
173 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
174 <Description>Windows 11 disable TPM check</Description>
175 </RunAsynchronousCommand>
176 </RunAsynchronous>
177
178 </component>
179 </settings>
180
181 <settings pass="specialize">
182 <component name="Microsoft-Windows-Shell-Setup"
183 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
184 publicKeyToken="31bf3856ad364e35" language="neutral"
185 versionScope="nonSxS">
186 <ComputerName>@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN_MAX_15@@</ComputerName>
187 </component>
188
189 <component name="Microsoft-Windows-Deployment"
190 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
191 publicKeyToken="31bf3856ad364e35" language="neutral"
192 versionScope="nonSxS">
193
194 <!-- Apply registry tweaks in the final Windows install, skipping the checks in the Windows 11 setup program. This means upgrades started in this install will work without compatibility complaints. -->
195 <RunAsynchronous>
196 <RunAsynchronousCommand>
197 <Order>1</Order>
198 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
199 <Description>Windows 11 disable CPU check</Description>
200 </RunAsynchronousCommand>
201 <RunAsynchronousCommand>
202 <Order>2</Order>
203 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
204 <Description>Windows 11 disable RAM check</Description>
205 </RunAsynchronousCommand>
206 <RunAsynchronousCommand>
207 <Order>3</Order>
208 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
209 <Description>Windows 11 disable Secure Boot check</Description>
210 </RunAsynchronousCommand>
211 <RunAsynchronousCommand>
212 <Order>4</Order>
213 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
214 <Description>Windows 11 disable Storage check</Description>
215 </RunAsynchronousCommand>
216 <RunAsynchronousCommand>
217 <Order>5</Order>
218 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
219 <Description>Windows 11 disable TPM check</Description>
220 </RunAsynchronousCommand>
221 </RunAsynchronous>
222 </component>
223 </settings>
224
225 <settings pass="oobeSystem">
226 <component name="Microsoft-Windows-Shell-Setup"
227 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
228 publicKeyToken="31bf3856ad364e35" language="neutral"
229 versionScope="nonSxS">
230 <AutoLogon>
231 <Password>
232 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
233 <PlainText>true</PlainText>
234 </Password>
235 <Enabled>true</Enabled>
236 <Username>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Username>
237 </AutoLogon>
238
239 <UserAccounts>
240@@VBOX_COND_IS_USER_LOGIN_NOT_ADMINISTRATOR@@
241 <AdministratorPassword>
242 <Value>@@VBOX_INSERT_ROOT_PASSWORD_ELEMENT@@</Value>
243 <PlainText>true</PlainText>
244 </AdministratorPassword>
245
246 <LocalAccounts>
247 <LocalAccount wcm:action="add">
248 <Name>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Name>
249 <DisplayName>@@VBOX_INSERT_USER_FULL_NAME_ELEMENT@@</DisplayName>
250 <Group>administrators;users</Group>
251 <Password>
252 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
253 <PlainText>true</PlainText>
254 </Password>
255 </LocalAccount>
256 </LocalAccounts>
257@@VBOX_COND_END@@
258@@VBOX_COND_IS_USER_LOGIN_ADMINISTRATOR@@
259 <AdministratorPassword>
260 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
261 <PlainText>true</PlainText>
262 </AdministratorPassword>
263@@VBOX_COND_END@@
264 </UserAccounts>
265
266 <VisualEffects>
267 <FontSmoothing>ClearType</FontSmoothing>
268 </VisualEffects>
269
270 <OOBE>
271 <ProtectYourPC>3</ProtectYourPC>
272 <HideEULAPage>true</HideEULAPage>
273 <SkipUserOOBE>true</SkipUserOOBE>
274 <SkipMachineOOBE>true</SkipMachineOOBE>
275 <!-- Make this (NetworkLocation) default to public and make it configurable -->
276 <NetworkLocation>Home</NetworkLocation>
277 </OOBE>
278
279 <FirstLogonCommands>
280 <SynchronousCommand wcm:action="add">
281 <!-- For which OS versions do we need to do this? -->
282 <Order>1</Order>
283 <Description>Turn Off Network Selection pop-up</Description>
284 <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
285 </SynchronousCommand>
286 <SynchronousCommand wcm:action="add">
287 <Order>2</Order>
288 <Description>VirtualBox post guest install steps </Description>
289 <CommandLine>cmd.exe /c @@VBOX_INSERT_AUXILIARY_INSTALL_DIR@@VBOXPOST.CMD --vista-or-newer</CommandLine>
290 </SynchronousCommand>
291 </FirstLogonCommands>
292
293 <TimeZone>@@VBOX_INSERT_TIME_ZONE_WIN_NAME@@</TimeZone>
294 </component>
295
296 </settings>
297</unattend>
298
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette