VirtualBox

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

Last change on this file since 68243 was 68243, checked in by vboxsync, 8 years ago

Unattended: Set hostname (computer name) for windows vista+ installs.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
Line 
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
5 <settings pass="windowsPE">
6 <component name="Microsoft-Windows-International-Core-WinPE"
7 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
8 publicKeyToken="31bf3856ad364e35" language="neutral"
9 versionScope="nonSxS">
10 <InputLocale>en-US</InputLocale>
11 <SystemLocale>@@VBOX_INSERT_DASH_LOCALE@@</SystemLocale>
12 <UserLocale>@@VBOX_INSERT_DASH_LOCALE@@</UserLocale>
13 <!-- UILanguage must match the installation media language. Stuff like de-CH does not work for
14 example de_windows_7_enterprise_with_sp1_x64_dvd_u_677649.iso. However, stupidly we cannot
15 omit this element (kudos to brilliant minds at MS). -->
16 <UILanguage>@@VBOX_INSERT_LANGUAGE@@</UILanguage>
17 </component>
18
19 <component name="Microsoft-Windows-Setup"
20 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
21 publicKeyToken="31bf3856ad364e35" language="neutral"
22 versionScope="nonSxS">
23
24 <DiskConfiguration>
25 <WillShowUI>OnError</WillShowUI>
26 <Disk>
27 <DiskID>0</DiskID>
28 <WillWipeDisk>true</WillWipeDisk>
29 <CreatePartitions>
30 <CreatePartition>
31 <Order>1</Order>
32 <Type>Primary</Type>
33 <Extend>true</Extend>
34 </CreatePartition>
35 </CreatePartitions>
36 </Disk>
37 </DiskConfiguration>
38
39 <UserData>
40 <ProductKey>
41 <Key>@@VBOX_INSERT_PRODUCT_KEY_ELEMENT@@</Key>
42 <WillShowUI>OnError</WillShowUI>
43 </ProductKey>
44 <AcceptEula>true</AcceptEula>
45 </UserData>
46
47 <ImageInstall>
48 <OSImage>
49 <InstallFrom>
50 <MetaData wcm:action="add">
51 <Key>/IMAGE/INDEX</Key>
52 <Value>@@VBOX_INSERT_IMAGE_INDEX_ELEMENT@@</Value>
53 </MetaData>
54 <!-- <Path>d:\sources\install.wim</Path> - the w7 tests doesn't specify this -->
55 </InstallFrom>
56 <InstallTo>
57 <DiskID>0</DiskID>
58 <PartitionID>1</PartitionID>
59 </InstallTo>
60 <WillShowUI>OnError</WillShowUI>
61 <InstallToAvailablePartition>false</InstallToAvailablePartition>
62 </OSImage>
63 </ImageInstall>
64
65 <ComplianceCheck>
66 <DisplayReport>OnError</DisplayReport>
67 </ComplianceCheck>
68
69 </component>
70 </settings>
71
72 <settings pass="specialize">
73 <component name="Microsoft-Windows-Shell-Setup"
74 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
75 publicKeyToken="31bf3856ad364e35" language="neutral"
76 versionScope="nonSxS">
77 <ComputerName>@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN_MAX_15@@</ComputerName>
78 </component>
79 </settings>
80
81 <settings pass="oobeSystem">
82 <component name="Microsoft-Windows-Shell-Setup"
83 processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
84 publicKeyToken="31bf3856ad364e35" language="neutral"
85 versionScope="nonSxS">
86 <AutoLogon>
87 <Password>
88 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
89 <PlainText>true</PlainText>
90 </Password>
91 <Enabled>true</Enabled>
92 <Username>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Username>
93 </AutoLogon>
94
95 <UserAccounts>
96@@VBOX_COND_IS_USER_LOGIN_NOT_ADMINISTRATOR@@
97 <AdministratorPassword>
98 <Value>@@VBOX_INSERT_ROOT_PASSWORD_ELEMENT@@</Value>
99 <PlainText>true</PlainText>
100 </AdministratorPassword>
101
102 <LocalAccounts>
103 <LocalAccount wcm:action="add">
104 <Name>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Name>
105 <DisplayName>@@VBOX_INSERT_USER_FULL_NAME_ELEMENT@@</DisplayName>
106 <Group>administrators;users</Group>
107 <Password>
108 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
109 <PlainText>true</PlainText>
110 </Password>
111 </LocalAccount>
112 </LocalAccounts>
113@@VBOX_COND_END@@
114@@VBOX_COND_IS_USER_LOGIN_ADMINISTRATOR@@
115 <AdministratorPassword>
116 <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
117 <PlainText>true</PlainText>
118 </AdministratorPassword>
119@@VBOX_COND_END@@
120 </UserAccounts>
121
122 <VisualEffects>
123 <FontSmoothing>ClearType</FontSmoothing>
124 </VisualEffects>
125
126 <OOBE>
127 <ProtectYourPC>3</ProtectYourPC>
128 <HideEULAPage>true</HideEULAPage>
129 <SkipUserOOBE>true</SkipUserOOBE>
130 <SkipMachineOOBE>true</SkipMachineOOBE>
131 <!-- Make this (NetworkLocation) default to public and make it configurable -->
132 <NetworkLocation>Home</NetworkLocation>
133 </OOBE>
134
135 <FirstLogonCommands>
136 <SynchronousCommand wcm:action="add">
137 <Order>1</Order>
138 <Description>Turn Off Network Selection pop-up</Description>
139 <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
140 </SynchronousCommand>
141 <SynchronousCommand wcm:action="add">
142 <Order>2</Order>
143 <Description>VirtualBox post guest install steps </Description>
144 <CommandLine>cmd.exe /c A:\VBOXPOST.CMD</CommandLine>
145 </SynchronousCommand>
146 </FirstLogonCommands>
147
148 <TimeZone>@@VBOX_INSERT_TIME_ZONE_WIN_NAME@@</TimeZone>
149 </component>
150
151 </settings>
152</unattend>
153
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