Skip to content

Commit 9bb4a4a

Browse files
authored
fix: Windows configuration (#96)
1 parent 803af6d commit 9bb4a4a

9 files changed

+281
-99
lines changed

.github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
paths-ignore:
99
- '**/*.md'
1010
- '**/*.yml'
11-
- '**/*.xml'
1211
- '.gitignore'
1312
- '.dockerignore'
1413
- '.github/**'

assets/win10x64.xml

+35-13
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,19 @@
171171
<OEMName>Windows for Docker</OEMName>
172172
</component>
173173
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
174-
<DisableWER>1</DisableWER>
174+
<DisableWER>1</DisableWER>
175175
</component>
176176
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
177-
<DisableAccelerators>true</DisableAccelerators>
178-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
179-
<Home_Page>about:blank</Home_Page>
180-
<Help_Page>about:blank</Help_Page>
177+
<DisableAccelerators>true</DisableAccelerators>
178+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
179+
<Home_Page>about:blank</Home_Page>
180+
<Help_Page>about:blank</Help_Page>
181181
</component>
182182
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
183-
<DisableAccelerators>true</DisableAccelerators>
184-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
185-
<Home_Page>about:blank</Home_Page>
186-
<Help_Page>about:blank</Help_Page>
183+
<DisableAccelerators>true</DisableAccelerators>
184+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
185+
<Home_Page>about:blank</Home_Page>
186+
<Help_Page>about:blank</Help_Page>
187187
</component>
188188
<component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
189189
<CEIPEnabled>0</CEIPEnabled>
@@ -351,24 +351,46 @@
351351
</SynchronousCommand>
352352
<SynchronousCommand wcm:action="add">
353353
<Order>4</Order>
354+
<RequiresUserInput>false</RequiresUserInput>
354355
<CommandLine>cmd /C POWERCFG -H OFF</CommandLine>
355356
<Description>Disable Hibernation</Description>
356357
</SynchronousCommand>
357358
<SynchronousCommand wcm:action="add">
358359
<Order>5</Order>
359-
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
360-
<Description>Install VirtIO drivers</Description>
360+
<RequiresUserInput>false</RequiresUserInput>
361+
<CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>
362+
<Description>Disable monitor blanking</Description>
361363
</SynchronousCommand>
362364
<SynchronousCommand wcm:action="add">
363365
<Order>6</Order>
366+
<CommandLine>reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f</CommandLine>
367+
<Description>Disable screensaver</Description>
368+
</SynchronousCommand>
369+
<SynchronousCommand wcm:action="add">
370+
<Order>7</Order>
364371
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f</CommandLine>
365372
<Description>Disable Network Discovery popup</Description>
366373
</SynchronousCommand>
367374
<SynchronousCommand wcm:action="add">
368-
<Order>7</Order>
369-
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f</CommandLine>
375+
<Order>8</Order>
376+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f</CommandLine>
370377
<Description>Disable Network Discovery popup</Description>
371378
</SynchronousCommand>
379+
<SynchronousCommand wcm:action="add">
380+
<Order>9</Order>
381+
<CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>
382+
<Description>Disable first-run experience in Edge</Description>
383+
</SynchronousCommand>
384+
<SynchronousCommand wcm:action="add">
385+
<Order>10</Order>
386+
<CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>
387+
<Description>Show file extensions in Explorer</Description>
388+
</SynchronousCommand>
389+
<SynchronousCommand wcm:action="add">
390+
<Order>11</Order>
391+
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
392+
<Description>Install VirtIO drivers</Description>
393+
</SynchronousCommand>
372394
</FirstLogonCommands>
373395
</component>
374396
</settings>

assets/win11x64.xml

+37-13
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,19 @@
189189
<OEMName>Windows for Docker</OEMName>
190190
</component>
191191
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
192-
<DisableWER>1</DisableWER>
192+
<DisableWER>1</DisableWER>
193193
</component>
194194
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
195-
<DisableAccelerators>true</DisableAccelerators>
196-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
197-
<Home_Page>about:blank</Home_Page>
198-
<Help_Page>about:blank</Help_Page>
195+
<DisableAccelerators>true</DisableAccelerators>
196+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
197+
<Home_Page>about:blank</Home_Page>
198+
<Help_Page>about:blank</Help_Page>
199199
</component>
200200
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
201-
<DisableAccelerators>true</DisableAccelerators>
202-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
203-
<Home_Page>about:blank</Home_Page>
204-
<Help_Page>about:blank</Help_Page>
201+
<DisableAccelerators>true</DisableAccelerators>
202+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
203+
<Home_Page>about:blank</Home_Page>
204+
<Help_Page>about:blank</Help_Page>
205205
</component>
206206
<component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
207207
<CEIPEnabled>0</CEIPEnabled>
@@ -364,10 +364,12 @@
364364
<SynchronousCommand wcm:action="add">
365365
<Order>3</Order>
366366
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>
367+
<Description>Disable unsupported hardware notifications</Description>
367368
</SynchronousCommand>
368369
<SynchronousCommand wcm:action="add">
369370
<Order>4</Order>
370371
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>
372+
<Description>Disable unsupported hardware notifications</Description>
371373
</SynchronousCommand>
372374
<SynchronousCommand wcm:action="add">
373375
<Order>5</Order>
@@ -377,24 +379,46 @@
377379
</SynchronousCommand>
378380
<SynchronousCommand wcm:action="add">
379381
<Order>6</Order>
382+
<RequiresUserInput>false</RequiresUserInput>
380383
<CommandLine>cmd /C POWERCFG -H OFF</CommandLine>
381384
<Description>Disable Hibernation</Description>
382385
</SynchronousCommand>
383386
<SynchronousCommand wcm:action="add">
384387
<Order>7</Order>
385-
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
386-
<Description>Install VirtIO drivers</Description>
388+
<RequiresUserInput>false</RequiresUserInput>
389+
<CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>
390+
<Description>Disable monitor blanking</Description>
387391
</SynchronousCommand>
388392
<SynchronousCommand wcm:action="add">
389393
<Order>8</Order>
394+
<CommandLine>reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f</CommandLine>
395+
<Description>Disable screensaver</Description>
396+
</SynchronousCommand>
397+
<SynchronousCommand wcm:action="add">
398+
<Order>9</Order>
390399
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f</CommandLine>
391400
<Description>Disable Network Discovery popup</Description>
392401
</SynchronousCommand>
393402
<SynchronousCommand wcm:action="add">
394-
<Order>9</Order>
395-
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f</CommandLine>
403+
<Order>10</Order>
404+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f</CommandLine>
396405
<Description>Disable Network Discovery popup</Description>
397406
</SynchronousCommand>
407+
<SynchronousCommand wcm:action="add">
408+
<Order>11</Order>
409+
<CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>
410+
<Description>Disable first-run experience in Edge</Description>
411+
</SynchronousCommand>
412+
<SynchronousCommand wcm:action="add">
413+
<Order>12</Order>
414+
<CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>
415+
<Description>Show file extensions in Explorer</Description>
416+
</SynchronousCommand>
417+
<SynchronousCommand wcm:action="add">
418+
<Order>13</Order>
419+
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
420+
<Description>Install VirtIO drivers</Description>
421+
</SynchronousCommand>
398422
</FirstLogonCommands>
399423
</component>
400424
</settings>

assets/win2016-eval.xml

+35-13
Original file line numberDiff line numberDiff line change
@@ -173,19 +173,19 @@
173173
<OEMName>Windows for Docker</OEMName>
174174
</component>
175175
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
176-
<DisableWER>1</DisableWER>
176+
<DisableWER>1</DisableWER>
177177
</component>
178178
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
179-
<DisableAccelerators>true</DisableAccelerators>
180-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
181-
<Home_Page>about:blank</Home_Page>
182-
<Help_Page>about:blank</Help_Page>
179+
<DisableAccelerators>true</DisableAccelerators>
180+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
181+
<Home_Page>about:blank</Home_Page>
182+
<Help_Page>about:blank</Help_Page>
183183
</component>
184184
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
185-
<DisableAccelerators>true</DisableAccelerators>
186-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
187-
<Home_Page>about:blank</Home_Page>
188-
<Help_Page>about:blank</Help_Page>
185+
<DisableAccelerators>true</DisableAccelerators>
186+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
187+
<Home_Page>about:blank</Home_Page>
188+
<Help_Page>about:blank</Help_Page>
189189
</component>
190190
<component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
191191
<CEIPEnabled>0</CEIPEnabled>
@@ -278,24 +278,46 @@
278278
</SynchronousCommand>
279279
<SynchronousCommand wcm:action="add">
280280
<Order>4</Order>
281+
<RequiresUserInput>false</RequiresUserInput>
281282
<CommandLine>cmd /C POWERCFG -H OFF</CommandLine>
282283
<Description>Disable Hibernation</Description>
283284
</SynchronousCommand>
284285
<SynchronousCommand wcm:action="add">
285286
<Order>5</Order>
286-
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
287-
<Description>Install VirtIO drivers</Description>
287+
<RequiresUserInput>false</RequiresUserInput>
288+
<CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>
289+
<Description>Disable monitor blanking</Description>
288290
</SynchronousCommand>
289291
<SynchronousCommand wcm:action="add">
290292
<Order>6</Order>
293+
<CommandLine>reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f</CommandLine>
294+
<Description>Disable screensaver</Description>
295+
</SynchronousCommand>
296+
<SynchronousCommand wcm:action="add">
297+
<Order>7</Order>
291298
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f</CommandLine>
292299
<Description>Disable Network Discovery popup</Description>
293300
</SynchronousCommand>
294301
<SynchronousCommand wcm:action="add">
295-
<Order>7</Order>
296-
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f</CommandLine>
302+
<Order>8</Order>
303+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f</CommandLine>
297304
<Description>Disable Network Discovery popup</Description>
298305
</SynchronousCommand>
306+
<SynchronousCommand wcm:action="add">
307+
<Order>9</Order>
308+
<CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>
309+
<Description>Disable first-run experience in Edge</Description>
310+
</SynchronousCommand>
311+
<SynchronousCommand wcm:action="add">
312+
<Order>10</Order>
313+
<CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>
314+
<Description>Show file extensions in Explorer</Description>
315+
</SynchronousCommand>
316+
<SynchronousCommand wcm:action="add">
317+
<Order>11</Order>
318+
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
319+
<Description>Install VirtIO drivers</Description>
320+
</SynchronousCommand>
299321
</FirstLogonCommands>
300322
</component>
301323
</settings>

assets/win2019-eval.xml

+35-13
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@
177177
<OEMName>Windows for Docker</OEMName>
178178
</component>
179179
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
180-
<DisableWER>1</DisableWER>
180+
<DisableWER>1</DisableWER>
181181
</component>
182182
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
183-
<DisableAccelerators>true</DisableAccelerators>
184-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
185-
<Home_Page>about:blank</Home_Page>
186-
<Help_Page>about:blank</Help_Page>
183+
<DisableAccelerators>true</DisableAccelerators>
184+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
185+
<Home_Page>about:blank</Home_Page>
186+
<Help_Page>about:blank</Help_Page>
187187
</component>
188188
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
189-
<DisableAccelerators>true</DisableAccelerators>
190-
<DisableFirstRunWizard>true</DisableFirstRunWizard>
191-
<Home_Page>about:blank</Home_Page>
192-
<Help_Page>about:blank</Help_Page>
189+
<DisableAccelerators>true</DisableAccelerators>
190+
<DisableFirstRunWizard>true</DisableFirstRunWizard>
191+
<Home_Page>about:blank</Home_Page>
192+
<Help_Page>about:blank</Help_Page>
193193
</component>
194194
<component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
195195
<CEIPEnabled>0</CEIPEnabled>
@@ -285,24 +285,46 @@
285285
</SynchronousCommand>
286286
<SynchronousCommand wcm:action="add">
287287
<Order>4</Order>
288+
<RequiresUserInput>false</RequiresUserInput>
288289
<CommandLine>cmd /C POWERCFG -H OFF</CommandLine>
289290
<Description>Disable Hibernation</Description>
290291
</SynchronousCommand>
291292
<SynchronousCommand wcm:action="add">
292293
<Order>5</Order>
293-
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
294-
<Description>Install VirtIO drivers</Description>
294+
<RequiresUserInput>false</RequiresUserInput>
295+
<CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>
296+
<Description>Disable monitor blanking</Description>
295297
</SynchronousCommand>
296298
<SynchronousCommand wcm:action="add">
297299
<Order>6</Order>
300+
<CommandLine>reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f</CommandLine>
301+
<Description>Disable screensaver</Description>
302+
</SynchronousCommand>
303+
<SynchronousCommand wcm:action="add">
304+
<Order>7</Order>
298305
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f</CommandLine>
299306
<Description>Disable Network Discovery popup</Description>
300307
</SynchronousCommand>
301308
<SynchronousCommand wcm:action="add">
302-
<Order>7</Order>
303-
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f</CommandLine>
309+
<Order>8</Order>
310+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f</CommandLine>
304311
<Description>Disable Network Discovery popup</Description>
305312
</SynchronousCommand>
313+
<SynchronousCommand wcm:action="add">
314+
<Order>9</Order>
315+
<CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>
316+
<Description>Disable first-run experience in Edge</Description>
317+
</SynchronousCommand>
318+
<SynchronousCommand wcm:action="add">
319+
<Order>10</Order>
320+
<CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>
321+
<Description>Show file extensions in Explorer</Description>
322+
</SynchronousCommand>
323+
<SynchronousCommand wcm:action="add">
324+
<Order>11</Order>
325+
<CommandLine>msiexec /i E:\virtio-win-gt-x64.msi /qb!</CommandLine>
326+
<Description>Install VirtIO drivers</Description>
327+
</SynchronousCommand>
306328
</FirstLogonCommands>
307329
</component>
308330
</settings>

0 commit comments

Comments
 (0)