VirtualBox

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

Last change on this file since 107044 was 106061, checked in by vboxsync, 2 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-2024 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@@VBOX_COND_HAS_PRODUCT_KEY@@
115 <ProductKey>
116 <Key>@@VBOX_INSERT_PRODUCT_KEY_ELEMENT@@</Key>
117 <WillShowUI>OnError</WillShowUI>
118 </ProductKey>
119@@VBOX_COND_END@@
120 <AcceptEula>true</AcceptEula>
121 </UserData>
122
123 <ImageInstall>
124 <OSImage>
125 <InstallFrom>
126 <!-- TODO: This stuff doesn't work for en_windows_vista_enterprise_sp1_x64_and_x86.iso ... -->
127 <MetaData wcm:action="add">
128 <Key>/IMAGE/INDEX</Key>
129 <Value>@@VBOX_INSERT_IMAGE_INDEX_ELEMENT@@</Value>
130 </MetaData>
131 <!-- <Path>d:\sources\install.wim</Path> - the w7 tests doesn't specify this -->
132 </InstallFrom>
133 <InstallTo>
134 <DiskID>0</DiskID>
135@@VBOX_COND_IS_NOT_FIRMWARE_UEFI@@
136 <PartitionID>1</PartitionID>
137@@VBOX_COND_END@@
138@@VBOX_COND_IS_FIRMWARE_UEFI@@
139 <PartitionID>4</PartitionID>
140@@VBOX_COND_END@@
141 </InstallTo>
142 <WillShowUI>OnError</WillShowUI>
143 <InstallToAvailablePartition>false</InstallToAvailablePartition>
144 </OSImage>
145 </ImageInstall>
146
147 <ComplianceCheck>
148 <DisplayReport>OnError</DisplayReport>
149 </ComplianceCheck>
150
151 <!-- 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. -->
152 <RunAsynchronous>
153 <RunAsynchronousCommand>
154 <Order>1</Order>
155 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
156 <Description>Windows 11 disable CPU check</Description>
157 </RunAsynchronousCommand>
158 <RunAsynchronousCommand>
159 <Order>2</Order>
160 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
161 <Description>Windows 11 disable RAM check</Description>
162 </RunAsynchronousCommand>
163 <RunAsynchronousCommand>
164 <Order>3</Order>
165 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
166 <Description>Windows 11 disable Secure Boot check</Description>
167 </RunAsynchronousCommand>
168 <RunAsynchronousCommand>
169 <Order>4</Order>
170 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
171 <Description>Windows 11 disable Storage check</Description>
172 </RunAsynchronousCommand>
173 <RunAsynchronousCommand>
174 <Order>5</Order>
175 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
176 <Description>Windows 11 disable TPM check</Description>
177 </RunAsynchronousCommand>
178 </RunAsynchronous>
179
180 </component>
181 </settings>
182
183 <settings pass="specialize">
184 <component name="Microsoft-Windows-Shell-Setup"
185 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
186 publicKeyToken="31bf3856ad364e35" language="neutral"
187 versionScope="nonSxS">
188 <ComputerName>@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN_MAX_15@@</ComputerName>
189 </component>
190
191 <component name="Microsoft-Windows-Deployment"
192 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
193 publicKeyToken="31bf3856ad364e35" language="neutral"
194 versionScope="nonSxS">
195
196 <!-- 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. -->
197 <RunAsynchronous>
198 <RunAsynchronousCommand>
199 <Order>1</Order>
200 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
201 <Description>Windows 11 disable CPU check</Description>
202 </RunAsynchronousCommand>
203 <RunAsynchronousCommand>
204 <Order>2</Order>
205 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
206 <Description>Windows 11 disable RAM check</Description>
207 </RunAsynchronousCommand>
208 <RunAsynchronousCommand>
209 <Order>3</Order>
210 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
211 <Description>Windows 11 disable Secure Boot check</Description>
212 </RunAsynchronousCommand>
213 <RunAsynchronousCommand>
214 <Order>4</Order>
215 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
216 <Description>Windows 11 disable Storage check</Description>
217 </RunAsynchronousCommand>
218 <RunAsynchronousCommand>
219 <Order>5</Order>
220 <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
221 <Description>Windows 11 disable TPM check</Description>
222 </RunAsynchronousCommand>
223 </RunAsynchronous>
224 </component>
225 </settings>
226
227 <settings pass="oobeSystem">
228 <component name="Microsoft-Windows-Shell-Setup"
229 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
230 publicKeyToken="31bf3856ad364e35" language="neutral"
231 versionScope="nonSxS">
232 <AutoLogon>
233 <Password>
234 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
235 <PlainText>true</PlainText>
236 </Password>
237 <Enabled>true</Enabled>
238 <Username>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Username>
239 </AutoLogon>
240
241 <UserAccounts>
242@@VBOX_COND_IS_USER_LOGIN_NOT_ADMINISTRATOR@@
243 <AdministratorPassword>
244 <Value>@@VBOX_INSERT_ROOT_PASSWORD_ELEMENT@@</Value>
245 <PlainText>true</PlainText>
246 </AdministratorPassword>
247
248 <LocalAccounts>
249 <LocalAccount wcm:action="add">
250 <Name>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Name>
251 <DisplayName>@@VBOX_INSERT_USER_FULL_NAME_ELEMENT@@</DisplayName>
252 <Group>administrators;users</Group>
253 <Password>
254 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
255 <PlainText>true</PlainText>
256 </Password>
257 </LocalAccount>
258 </LocalAccounts>
259@@VBOX_COND_END@@
260@@VBOX_COND_IS_USER_LOGIN_ADMINISTRATOR@@
261 <AdministratorPassword>
262 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
263 <PlainText>true</PlainText>
264 </AdministratorPassword>
265@@VBOX_COND_END@@
266 </UserAccounts>
267
268 <VisualEffects>
269 <FontSmoothing>ClearType</FontSmoothing>
270 </VisualEffects>
271
272 <OOBE>
273 <ProtectYourPC>3</ProtectYourPC>
274 <HideEULAPage>true</HideEULAPage>
275 <SkipUserOOBE>true</SkipUserOOBE>
276 <SkipMachineOOBE>true</SkipMachineOOBE>
277 <!-- Make this (NetworkLocation) default to public and make it configurable -->
278 <NetworkLocation>Home</NetworkLocation>
279 </OOBE>
280
281 <FirstLogonCommands>
282 <SynchronousCommand wcm:action="add">
283 <!-- For which OS versions do we need to do this? -->
284 <Order>1</Order>
285 <Description>Turn Off Network Selection pop-up</Description>
286 <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
287 </SynchronousCommand>
288 <SynchronousCommand wcm:action="add">
289 <Order>2</Order>
290 <Description>VirtualBox post guest install steps </Description>
291 <CommandLine>cmd.exe /c @@VBOX_INSERT_AUXILIARY_INSTALL_DIR@@VBOXPOST.CMD --vista-or-newer</CommandLine>
292 </SynchronousCommand>
293 </FirstLogonCommands>
294
295 <TimeZone>@@VBOX_INSERT_TIME_ZONE_WIN_NAME@@</TimeZone>
296 </component>
297
298 </settings>
299</unattend>
300
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