zer0 revised this gist . Go to revision
1 file changed, 161 insertions
autounattend.xml(file created)
@@ -0,0 +1,161 @@ | |||
1 | + | <?xml version="1.0" encoding="utf-8"?> | |
2 | + | <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | |
3 | + | <!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&BypassNetworkCheck=true&ComputerNameMode=Random&TimeZoneMode=Implicit&PartitionMode=Unattended&PartitionLayout=GPT&EspSize=300&RecoveryMode=Partition&RecoverySize=1000&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AccountName0=Admin1&AccountPassword0=&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&WifiMode=Skip&ExpressSettings=DisableAll&KeysMode=Skip&WallpaperMode=Default&WdacMode=Skip--> | |
4 | + | <settings pass="offlineServicing"></settings> | |
5 | + | <settings pass="windowsPE"> | |
6 | + | <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
7 | + | <SetupUILanguage> | |
8 | + | <UILanguage>en-US</UILanguage> | |
9 | + | </SetupUILanguage> | |
10 | + | <InputLocale>0409:00000409</InputLocale> | |
11 | + | <SystemLocale>en-US</SystemLocale> | |
12 | + | <UILanguage>en-US</UILanguage> | |
13 | + | <UserLocale>en-US</UserLocale> | |
14 | + | </component> | |
15 | + | <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
16 | + | <ImageInstall> | |
17 | + | <OSImage> | |
18 | + | <InstallTo> | |
19 | + | <DiskID>0</DiskID> | |
20 | + | <PartitionID>3</PartitionID> | |
21 | + | </InstallTo> | |
22 | + | </OSImage> | |
23 | + | </ImageInstall> | |
24 | + | <UserData> | |
25 | + | <ProductKey> | |
26 | + | <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key> | |
27 | + | </ProductKey> | |
28 | + | <AcceptEula>true</AcceptEula> | |
29 | + | </UserData> | |
30 | + | <RunSynchronous> | |
31 | + | <RunSynchronousCommand wcm:action="add"> | |
32 | + | <Order>1</Order> | |
33 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo SELECT DISK=0"</Path> | |
34 | + | </RunSynchronousCommand> | |
35 | + | <RunSynchronousCommand wcm:action="add"> | |
36 | + | <Order>2</Order> | |
37 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CLEAN"</Path> | |
38 | + | </RunSynchronousCommand> | |
39 | + | <RunSynchronousCommand wcm:action="add"> | |
40 | + | <Order>3</Order> | |
41 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CONVERT GPT"</Path> | |
42 | + | </RunSynchronousCommand> | |
43 | + | <RunSynchronousCommand wcm:action="add"> | |
44 | + | <Order>4</Order> | |
45 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION EFI SIZE=300"</Path> | |
46 | + | </RunSynchronousCommand> | |
47 | + | <RunSynchronousCommand wcm:action="add"> | |
48 | + | <Order>5</Order> | |
49 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=FAT32 LABEL="System""</Path> | |
50 | + | </RunSynchronousCommand> | |
51 | + | <RunSynchronousCommand wcm:action="add"> | |
52 | + | <Order>6</Order> | |
53 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION MSR SIZE=16"</Path> | |
54 | + | </RunSynchronousCommand> | |
55 | + | <RunSynchronousCommand wcm:action="add"> | |
56 | + | <Order>7</Order> | |
57 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION PRIMARY"</Path> | |
58 | + | </RunSynchronousCommand> | |
59 | + | <RunSynchronousCommand wcm:action="add"> | |
60 | + | <Order>8</Order> | |
61 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo SHRINK MINIMUM=1000"</Path> | |
62 | + | </RunSynchronousCommand> | |
63 | + | <RunSynchronousCommand wcm:action="add"> | |
64 | + | <Order>9</Order> | |
65 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Windows""</Path> | |
66 | + | </RunSynchronousCommand> | |
67 | + | <RunSynchronousCommand wcm:action="add"> | |
68 | + | <Order>10</Order> | |
69 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION PRIMARY"</Path> | |
70 | + | </RunSynchronousCommand> | |
71 | + | <RunSynchronousCommand wcm:action="add"> | |
72 | + | <Order>11</Order> | |
73 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Recovery""</Path> | |
74 | + | </RunSynchronousCommand> | |
75 | + | <RunSynchronousCommand wcm:action="add"> | |
76 | + | <Order>12</Order> | |
77 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac""</Path> | |
78 | + | </RunSynchronousCommand> | |
79 | + | <RunSynchronousCommand wcm:action="add"> | |
80 | + | <Order>13</Order> | |
81 | + | <Path>cmd.exe /c ">>"X:\diskpart.txt" echo GPT ATTRIBUTES=0x8000000000000001"</Path> | |
82 | + | </RunSynchronousCommand> | |
83 | + | <RunSynchronousCommand wcm:action="add"> | |
84 | + | <Order>14</Order> | |
85 | + | <Path>cmd.exe /c "diskpart.exe /s "X:\diskpart.txt" >>"X:\diskpart.log" || ( type "X:\diskpart.log" & echo diskpart encountered an error. & pause & exit /b 1 )"</Path> | |
86 | + | </RunSynchronousCommand> | |
87 | + | <RunSynchronousCommand wcm:action="add"> | |
88 | + | <Order>15</Order> | |
89 | + | <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path> | |
90 | + | </RunSynchronousCommand> | |
91 | + | <RunSynchronousCommand wcm:action="add"> | |
92 | + | <Order>16</Order> | |
93 | + | <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path> | |
94 | + | </RunSynchronousCommand> | |
95 | + | <RunSynchronousCommand wcm:action="add"> | |
96 | + | <Order>17</Order> | |
97 | + | <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path> | |
98 | + | </RunSynchronousCommand> | |
99 | + | </RunSynchronous> | |
100 | + | </component> | |
101 | + | </settings> | |
102 | + | <settings pass="generalize"></settings> | |
103 | + | <settings pass="specialize"> | |
104 | + | <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
105 | + | <RunSynchronous> | |
106 | + | <RunSynchronousCommand wcm:action="add"> | |
107 | + | <Order>1</Order> | |
108 | + | <Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f</Path> | |
109 | + | </RunSynchronousCommand> | |
110 | + | <RunSynchronousCommand wcm:action="add"> | |
111 | + | <Order>2</Order> | |
112 | + | <Path>net.exe accounts /maxpwage:UNLIMITED</Path> | |
113 | + | </RunSynchronousCommand> | |
114 | + | </RunSynchronous> | |
115 | + | </component> | |
116 | + | </settings> | |
117 | + | <settings pass="auditSystem"></settings> | |
118 | + | <settings pass="auditUser"></settings> | |
119 | + | <settings pass="oobeSystem"> | |
120 | + | <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
121 | + | <InputLocale>0409:00000409</InputLocale> | |
122 | + | <SystemLocale>en-US</SystemLocale> | |
123 | + | <UILanguage>en-US</UILanguage> | |
124 | + | <UserLocale>en-US</UserLocale> | |
125 | + | </component> | |
126 | + | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
127 | + | <UserAccounts> | |
128 | + | <LocalAccounts> | |
129 | + | <LocalAccount wcm:action="add"> | |
130 | + | <Name>Admin1</Name> | |
131 | + | <Group>Administrators</Group> | |
132 | + | <Password> | |
133 | + | <Value></Value> | |
134 | + | <PlainText>true</PlainText> | |
135 | + | </Password> | |
136 | + | </LocalAccount> | |
137 | + | </LocalAccounts> | |
138 | + | </UserAccounts> | |
139 | + | <AutoLogon> | |
140 | + | <Username>Admin1</Username> | |
141 | + | <Enabled>true</Enabled> | |
142 | + | <LogonCount>1</LogonCount> | |
143 | + | <Password> | |
144 | + | <Value></Value> | |
145 | + | <PlainText>true</PlainText> | |
146 | + | </Password> | |
147 | + | </AutoLogon> | |
148 | + | <OOBE> | |
149 | + | <ProtectYourPC>3</ProtectYourPC> | |
150 | + | <HideEULAPage>true</HideEULAPage> | |
151 | + | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | |
152 | + | </OOBE> | |
153 | + | <FirstLogonCommands> | |
154 | + | <SynchronousCommand wcm:action="add"> | |
155 | + | <Order>1</Order> | |
156 | + | <CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine> | |
157 | + | </SynchronousCommand> | |
158 | + | </FirstLogonCommands> | |
159 | + | </component> | |
160 | + | </settings> | |
161 | + | </unattend> |
Newer
Older