-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunattend.xml
More file actions
757 lines (717 loc) · 48.4 KB
/
unattend.xml
File metadata and controls
757 lines (717 loc) · 48.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&HidePowerShellWindows=true&ComputerNameMode=Script&ComputerNameScript=%24chassis+%3D+%28Get-CimInstance+-ClassName+Win32_SystemEnclosure%29.ChassisTypes%0D%0A%24laptopTypes+%3D+%40%281%2C+8%2C+9%2C+10%2C+11%2C+12%2C+14%2C+18%2C+21%2C+31%2C+32%29%0D%0A%0D%0Aif+%28%24chassis+-ne+%24null+-and+%28%24chassis+%7C+Where-Object+%7B+%24laptopTypes+-contains+%24_+%7D%29%29+%7B%0D%0A++++return+%27LAPTOP%27%0D%0A%7D+else+%7B%0D%0A++++return+%27PC%27%0D%0A%7D%0D%0A&CompactOsMode=Never&TimeZoneMode=Implicit&PartitionMode=Interactive&DiskAssertionMode=Skip&WindowsEditionMode=Generic&WindowsEdition=pro&InstallFromMode=Automatic&PEMode=Default&UserAccountMode=Unattended&AccountName0=user&AccountDisplayName0=&AccountPassword0=&AccountGroup0=Administrators&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Disabled&HideFiles=HiddenSystem&ShowFileExtensions=true&ClassicContextMenu=true&LaunchToThisPC=true&ShowEndTask=true&TaskbarSearch=Box&TaskbarIconsMode=Custom&TaskbarIconsXml=%3CLayoutModificationTemplate+xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2FStart%2F2014%2FLayoutModification%22+xmlns%3Adefaultlayout%3D%22http%3A%2F%2Fschemas.microsoft.com%2FStart%2F2014%2FFullDefaultLayout%22+xmlns%3Astart%3D%22http%3A%2F%2Fschemas.microsoft.com%2FStart%2F2014%2FStartLayout%22+xmlns%3Ataskbar%3D%22http%3A%2F%2Fschemas.microsoft.com%2FStart%2F2014%2FTaskbarLayout%22+Version%3D%221%22%3E%0D%0A++%3CCustomTaskbarLayoutCollection+PinListPlacement%3D%22Replace%22%3E%0D%0A++++%3Cdefaultlayout%3ATaskbarLayout%3E%0D%0A++++++%3Ctaskbar%3ATaskbarPinList%3E%0D%0A++++++++%3Ctaskbar%3ADesktopApp+DesktopApplicationID%3D%22Microsoft.Windows.Explorer%22+%2F%3E%0D%0A++++++%3C%2Ftaskbar%3ATaskbarPinList%3E%0D%0A++++%3C%2Fdefaultlayout%3ATaskbarLayout%3E%0D%0A++%3C%2FCustomTaskbarLayoutCollection%3E%0D%0A%3C%2FLayoutModificationTemplate%3E&DisableWidgets=true&HideTaskViewButton=true&StartTilesMode=Default&StartPinsMode=Custom&StartPinsJson=%7B%0D%0A++%22pinnedList%22%3A+%5B%0D%0A++++%7B%0D%0A++++++%22packagedAppId%22%3A+%22AutoOS_xxtketq8p23nt%21App%22%0D%0A++++%7D%0D%0A++%5D%0D%0A%7D&DisableUac=true&DisableSac=true&DisableSystemRestore=true&EnableLongPaths=true&PreventDeviceEncryption=true&HideEdgeFre=true&DisableEdgeStartupBoost=true&DisablePointerPrecision=true&DisableWpbt=true&EffectsMode=Custom&ControlAnimations=true&AnimateMinMax=true&TaskbarAnimations=true&DWMAeroPeekEnabled=true&MenuAnimation=true&TooltipAnimation=true&SelectionFade=true&CursorShadow=true&ListviewShadow=true&ThumbnailsOrIcon=true&ListviewAlphaSelect=true&DragFullWindows=true&ComboBoxAnimation=true&FontSmoothing=true&ListBoxSmoothScrolling=true&DropShadow=true&DeleteEdgeDesktopIcon=true&DesktopIconsMode=Default&StartFoldersMode=Default&VBoxGuestAdditions=true&VMwareTools=true&WifiMode=Interactive&ExpressSettings=DisableAll&LockKeysMode=Configure&CapsLockInitial=Off&CapsLockBehavior=Toggle&NumLockInitial=On&NumLockBehavior=Toggle&ScrollLockInitial=Off&ScrollLockBehavior=Toggle&StickyKeysMode=Disabled&ColorMode=Default&WallpaperMode=Default&LockScreenMode=Default&SystemScript0=Windows+Registry+Editor+Version+5.00%0D%0A%0D%0A%3B+Enable+rounded+corners+and+transparency+without+graphics+drivers%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%5CDwm%5D%0D%0A%22ForceEffectMode%22%3Ddword%3A00000002%0D%0A%0D%0A%3B+Enable+developer+mode%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CAppx%5D%0D%0A%22AllowDevelopmentWithoutDevLicense%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Enable+%22Display+highly+detailed+status+messages%22%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CPolicies%5CSystem%5D%0D%0A%22VerboseStatus%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Enable+%22Do+not+include+drivers+with+Windows+Updates%22%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CWindowsUpdate%5D%0D%0A%22ExcludeWUDriversInQualityUpdate%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Set+%22Specify+search+order+for+device+driver+source+locations%22+to+%22Do+not+search+Windows+Update%22%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CDriverSearching%5D%0D%0A%22SearchOrderConfig%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Enable+%22Prevent+automatic+download+of+applications+associated+with+device+metadata%22%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CDevice+Metadata%5D%0D%0A%22PreventDeviceMetadataFromNetwork%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Disable+Co-Installers%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CDevice+Installer%5D%0D%0A%22DisableCoInstallers%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Disable+new+Windows+Start+Menu+layout%0D%0A%5BHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CFeatureManagement%5COverrides%5C8%5C3036241548%5D%0D%0A%22EnabledState%22%3Ddword%3A00000001%0D%0A%22EnabledStateOptions%22%3Ddword%3A00000000%0D%0A%22Variant%22%3Ddword%3A00000000%0D%0A%22VariantPayload%22%3Ddword%3A00000000%0D%0A%22VariantPayloadKind%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Enable+%22Turn+off+display+of+recent+search+entries+in+the+File+Explorer+search+box%22%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CExplorer%5D%0D%0A%22DisableSearchBoxSuggestions%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Hide+Windows+Update+tray+icon%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings%5D%0D%0A%22TrayIconVisibility%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Rename+device%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5COEMInformation%5D%0D%0A%22Model%22%3D%22AutoOS%22%0D%0A%0D%0A%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows+NT%5CCurrentVersion%5D%0D%0A%22RegisteredOrganization%22%3D%22AutoOS%22%0D%0A%22EditionSubManufacturer%22%3D%22tinodin%22%0D%0A%22EditionSubstring%22%3D%22AutoOS%22%0D%0A%22EditionSubVersion%22%3D%22AutoOS%22&SystemScriptType0=Reg&SystemScript1=label+C%3A+AutoOS%0D%0Abcdedit+%2Fset+%7Bcurrent%7D+description+%22AutoOS%22%0D%0Abcdedit+%2Fset+bootmenupolicy+legacy%0D%0Abcdedit+%2Ftimeout+6&SystemScriptType1=Cmd&SystemScript2=fsutil+behavior+set+allowextchar+0%0D%0Afsutil+behavior+set+bugcheckoncorrupt+0%0D%0Afsutil+behavior+set+disable8dot3+1%0D%0Afsutil+behavior+set+disablecompression+1%0D%0Afsutil+behavior+set+disabledeletenotify+0%0D%0Afsutil+behavior+set+disableencryption+1%0D%0Afsutil+behavior+set+disablelastaccess+1%0D%0Afsutil+behavior+set+disablespotcorruptionhandling+1%0D%0Afsutil+behavior+set+enablenonpagedntfs+1%0D%0Afsutil+behavior+set+encryptpagingfile+0%0D%0Afsutil+behavior+set+quotanotify+86400%0D%0Afsutil+behavior+set+symlinkevaluation+L2L%3A1%0D%0Afsutil+repair+set+C%3A+0&SystemScriptType2=Cmd&DefaultUserScript0=Windows+Registry+Editor+Version+5.00%0D%0A%0D%0A%3B+Enable+notifications+for+Snipping+Tool%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CMicrosoft.ScreenSketch_8wekyb3d8bbwe%21App%5D%0D%0A%22Enabled%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Disable+notifications+for+Settings%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5Cwindows.immersivecontrolpanel_cw5n1h2txyewy%21microsoft.windows.immersivecontrolpanel%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+notifications+for+Microsoft+Store%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CMicrosoft.WindowsStore_8wekyb3d8bbwe%21App%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+notifications+for+OneDrive%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CMicrosoft.SkyDrive.Desktop%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+suggested+notifications%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CWindows.SystemToast.Suggested%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+security+and+maintenance+notifications%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CWindows.SystemToast.SecurityAndMaintenance%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+startup+app+notifications%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CWindows.SystemToast.StartupApp%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Disable+pin+notifications%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CNotifications%5CSettings%5CWindows.SystemToast.PinConsent%5D%0D%0A%22Enabled%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Enable+%22Remove+the+Security+and+Maintenance+icon%22%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CPolicies%5CMicrosoft%5CWindows%5CExplorer%5D%0D%0A%22HideSCAHealth%22%3Ddword%3A00000001%0D%0A%0D%0A%3B+Hide+the+Bluetooth+tray+icon%0D%0A%5BHKEY_USERS%5CDefaultUser%5CControl+Panel%5CBluetooth%5D%0D%0A%22Notification+Area+Icon%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Hide+Desktop+icons%0D%0A%5BHKEY_USERS%5CDefaultUser%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CExplorer%5CAdvanced%5D%0D%0A%22HideIcons%22%3Ddword%3A00000001&DefaultUserScriptType0=Reg&FirstLogonScript0=%23+Precompile+.NET+assemblies+%28speeds+up+PowerShell+loading+times%29%0D%0A%24env%3Apath+%3D+%22%24%28%5BRuntime.InteropServices.RuntimeEnvironment%5D%3A%3AGetRuntimeDirectory%28%29%29%3B%22+%2B+%24env%3Apath%0D%0A%5BAppDomain%5D%3A%3ACurrentDomain.GetAssemblies%28%29.Location+%7C+%3F+%7B%24_%7D+%7C+%25+%7B%0D%0A++++ngen+install+%24_+%7C+Out-Null%0D%0A%7D&FirstLogonScriptType0=Ps1&FirstLogonScript1=%23+Pause+windows+updates+for+100+years%0D%0A%24formatter+%3D+%7B+param%28%24date%29+%24date.ToString%28%22yyyy%27-%27MM%27-%27dd%27T%27HH%27%3A%27mm%27%3A%27ssK%22%29+%7D%0D%0A%24now+++%3D+%5Bdatetime%5D%3A%3AUtcNow%0D%0A%24start+%3D+%24formatter.Invoke%28%24now%29%0D%0A%24end+++%3D+%24formatter.Invoke%28%24now.AddYears%28100%29%29%0D%0A%0D%0A%24currentVersion+%3D+%28Get-ItemProperty+%27HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows+NT%5CCurrentVersion%27%29.DisplayVersion%0D%0A%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseFeatureUpdatesStartTime%27+-Value+%24start+-Type+String+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseFeatureUpdatesEndTime%27+-Value+%24end+-Type+String+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseQualityUpdatesStartTime%27+-Value+%24start+-Type+String+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseQualityUpdatesEndTime%27+-Value+%24end+-Type+String+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseUpdatesStartTime%27+-Value+%24start+-Type+String+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindowsUpdate%5CUX%5CSettings+-Name+%27PauseUpdatesExpiryTime%27+-Value+%24end+-Type+String+-Force%0D%0A%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CWindowsUpdate+-Name+%27TargetReleaseVersion%27+-Value+1+-Type+DWord+-Force%0D%0ASet-ItemProperty+-LiteralPath+HKLM%3A%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%5CWindowsUpdate+-Name+%27TargetReleaseVersionInfo%27+-Value+%24currentVersion+-Type+String+-Force&FirstLogonScriptType1=Ps1&FirstLogonScript2=bcdedit+%2Fset+bootmenupolicy+legacy%0D%0Abcdedit+%2Ftimeout+6&FirstLogonScriptType2=Cmd&FirstLogonScript3=%23+Parse+releases%0D%0A%24releases+%3D+Invoke-RestMethod+-Uri+%22https%3A%2F%2Fapi.github.com%2Frepos%2Ftinodin%2FAutoOS%2Freleases%22+-Headers+%40%7B+%22User-Agent%22+%3D+%22PowerShell%22+%7D%0D%0A%24latest+%3D+%24releases+%7C+Sort-Object+Published_at+-Descending+%7C+Select-Object+-First+1%0D%0A%24certAsset+%3D+%24latest.assets+%7C+Where-Object+%7B+%24_.name+-like+%22*.cer%22+%7D+%7C+Select-Object+-First+1%0D%0A%24msixAsset+%3D+%24latest.assets+%7C+Where-Object+%7B+%24_.name+-like+%22*.msix%22+%7D+%7C+Select-Object+-First+1%0D%0A%0D%0A%24certUrl++%3D+%24certAsset.browser_download_url%0D%0A%24msixUrl++%3D+%24msixAsset.browser_download_url%0D%0A%24certPath+%3D+Join-Path+%24env%3ATEMP+%24certAsset.name%0D%0A%24msixPath+%3D+Join-Path+%24env%3ATEMP+%24msixAsset.name%0D%0A%0D%0A%23+Download+and+install+certificate%0D%0AInvoke-WebRequest+-Uri+%24certUrl+-OutFile+%24certPath%0D%0AImport-Certificate+-FilePath+%24certPath+-CertStoreLocation+Cert%3A%5CLocalMachine%5CTrustedPeople%0D%0ARemove-Item+-Path+%24certPath%0D%0A%0D%0A%23+Download+and+install+msix%0D%0AStart-BitsTransfer+-Source+%24msixUrl+-Destination+%24msixPath%0D%0AAdd-AppxPackage+-Path+%24msixPath%0D%0ARemove-Item+-Path+%24msixPath&FirstLogonScriptType3=Ps1&FirstLogonScript4=Windows+Registry+Editor+Version+5.00%0D%0A%0D%0A%3B+Hide+search+box%0D%0A%5BHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CSearch%5D%0D%0A%22SearchboxTaskbarMode%22%3Ddword%3A00000000%0D%0A%0D%0A%3B+Add+settings+to+start+menu+shortcuts%0D%0A%5BHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CStart%5D%0D%0A%22VisiblePlaces%22%3Dhex%3A86%2C08%2C73%2C52%2Caa%2C51%2C43%2C42%2C9f%2C7b%2C27%2C76%2C58%2C46%2C59%2Cd4&FirstLogonScriptType4=Reg&FirstLogonScript5=%23+Pin+Recycle+Bin+to+quick+access%0D%0A%24RBPath+%3D+%27HKCU%3A%5CSoftware%5CClasses%5CCLSID%5C%7B645FF040-5081-101B-9F08-00AA002F954E%7D%5Cshell%5Cpintohome%5Ccommand%5C%27%0D%0A%24name+%3D+%22DelegateExecute%22%0D%0A%24value+%3D+%22%7Bb455f46e-e4af-4035-b0a4-cf18d2f6f28e%7D%22%0D%0ANew-Item+-Path+%24RBPath+-Force+%7C+out-null%0D%0ANew-ItemProperty+-Path+%24RBPath+-Name+%24name+-Value+%24value+-PropertyType+String+-Force+%7C+out-null%0D%0A%24oShell+%3D+New-Object+-ComObject+Shell.Application%0D%0A%24trash+%3D+%24oShell.Namespace%28%22shell%3A%3A%3A%7B645FF040-5081-101B-9F08-00AA002F954E%7D%22%29%0D%0A%24trash.Self.InvokeVerb%28%22PinToHome%22%29%0D%0ARemove-Item+-Path+%22HKCU%3A%5CSoftware%5CClasses%5CCLSID%5C%7B645FF040-5081-101B-9F08-00AA002F954E%7D%22+-Recurse&FirstLogonScriptType5=Ps1&FirstLogonScript6=%23+Set+correct+timezone%2C+regional+format%2C+keyboard+layout+and+secondary+language%0D%0A%24PSDefaultParameterValues%5B%27Invoke-WebRequest%3AUseBasicParsing%27%5D+%3D+%24true%0D%0AInvoke-WebRequest+%27https%3A%2F%2Fraw.githubusercontent.com%2Ftinodin%2FAutoOS%2Fmaster%2FAssets%2FScripts%2Ftimedateregion.ps1%27+-OutFile+%22%24env%3ATEMP%5Ctimedateregion.ps1%22%0D%0A%26+%22%24env%3ATEMP%5Ctimedateregion.ps1%22%0D%0AStart-Process+%22shell%3AAppsFolder%5CAutoOS_xxtketq8p23nt%21App%22%0D%0A&FirstLogonScriptType6=Ps1&WdacMode=Skip&AppLockerMode=Skip-->
<settings pass="offlineServicing"></settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UILanguage>en-US</UILanguage>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ImageInstall>
<OSImage>
<Compact>false</Compact>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<UseConfigurationSet>false</UseConfigurationSet>
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="generalize"></settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>TEMPNAME</ComputerName>
</component>
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>powershell.exe -WindowStyle "Hidden" -NoProfile -Command "$xml = [xml]::new(); $xml.Load('C:\Windows\Panther\unattend.xml'); $sb = [scriptblock]::Create( $xml.unattend.Extensions.ExtractScript ); Invoke-Command -ScriptBlock $sb -ArgumentList $xml;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>powershell.exe -WindowStyle "Hidden" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\Specialize.ps1"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Path>powershell.exe -WindowStyle "Hidden" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\DefaultUser.ps1"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>reg.exe unload "HKU\DefaultUser"</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditSystem"></settings>
<settings pass="auditUser"></settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>0409:00000409</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Name>user</Name>
<DisplayName></DisplayName>
<Group>Administrators</Group>
<Password>
<Value></Value>
<PlainText>true</PlainText>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<AutoLogon>
<Username>user</Username>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Password>
<Value></Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
<OOBE>
<ProtectYourPC>3</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
<HideOnlineAccountScreens>false</HideOnlineAccountScreens>
</OOBE>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>powershell.exe -WindowStyle "Hidden" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\FirstLogon.ps1"</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<Extensions xmlns="https://schneegans.de/windows/unattend-generator/">
<ExtractScript>
param(
[xml] $Document
);
foreach( $file in $Document.unattend.Extensions.File ) {
$path = [System.Environment]::ExpandEnvironmentVariables( $file.GetAttribute( 'path' ) );
mkdir -Path( $path | Split-Path -Parent ) -ErrorAction 'SilentlyContinue';
$encoding = switch( [System.IO.Path]::GetExtension( $path ) ) {
{ $_ -in '.ps1', '.xml' } { [System.Text.Encoding]::UTF8; }
{ $_ -in '.reg', '.vbs', '.js' } { [System.Text.UnicodeEncoding]::new( $false, $true ); }
default { [System.Text.Encoding]::Default; }
};
$bytes = $encoding.GetPreamble() + $encoding.GetBytes( $file.InnerText.Trim() );
[System.IO.File]::WriteAllBytes( $path, $bytes );
}
</ExtractScript>
<File path="C:\Windows\Setup\Scripts\GetComputerName.ps1">
$chassis = (Get-CimInstance -ClassName Win32_SystemEnclosure).ChassisTypes
$laptopTypes = @(1, 8, 9, 10, 11, 12, 14, 18, 21, 31, 32)
if ($chassis -ne $null -and ($chassis | Where-Object { $laptopTypes -contains $_ })) {
return 'LAPTOP'
} else {
return 'PC'
}
</File>
<File path="C:\Windows\Setup\Scripts\SetComputerName.ps1">
$ErrorActionPreference = 'Stop';
Set-StrictMode -Version 'Latest';
& {
$newName = ( Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\ComputerName.txt' -Raw ).Trim();
if( [string]::IsNullOrWhitespace( $newName ) ) {
throw "No computer name was provided.";
}
$keys = @(
@{
LiteralPath = 'Registry::HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName';
Name = 'ComputerName';
};
@{
LiteralPath = 'Registry::HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters';
Name = 'Hostname';
};
@{
LiteralPath = 'Registry::HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters';
Name = 'NV Hostname';
};
);
while( $true ) {
foreach( $key in $keys ) {
Set-ItemProperty @key -Type 'String' -Value $newName;
}
Start-Sleep -Milliseconds 50;
}
} *>&1 | Out-String -Width 1KB -Stream >> 'C:\Windows\Setup\Scripts\SetComputerName.log';
</File>
<File path="C:\Windows\Setup\Scripts\TaskbarLayoutModification.xml">
<LayoutModificationTemplate xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" Version="1">
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
</File>
<File path="C:\Windows\Setup\Scripts\UnlockStartLayout.vbs">
HKU = &H80000003
Set reg = GetObject("winmgmts://./root/default:StdRegProv")
Set fso = CreateObject("Scripting.FileSystemObject")
If reg.EnumKey(HKU, "", sids) = 0 Then
If Not IsNull(sids) Then
For Each sid In sids
key = sid + "\Software\Policies\Microsoft\Windows\Explorer"
name = "LockedStartLayout"
If reg.GetDWORDValue(HKU, key, name, existing) = 0 Then
reg.SetDWORDValue HKU, key, name, 0
End If
Next
End If
End If
</File>
<File path="C:\Windows\Setup\Scripts\UnlockStartLayout.xml">
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
<Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Application"&gt;&lt;Select Path="Application"&gt;*[System[Provider[@Name='UnattendGenerator'] and EventID=1]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
</EventTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-18</UserId>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\Windows\System32\wscript.exe</Command>
<Arguments>C:\Windows\Setup\Scripts\UnlockStartLayout.vbs</Arguments>
</Exec>
</Actions>
</Task>
</File>
<File path="C:\Windows\Setup\Scripts\VBoxGuestAdditions.ps1">
& {
foreach( $letter in 'DEFGHIJKLMNOPQRSTUVWXYZ'.ToCharArray() ) {
$exe = "${letter}:\VBoxWindowsAdditions.exe";
if( Test-Path -LiteralPath $exe ) {
$certs = "${letter}:\cert";
Start-Process -FilePath "${certs}\VBoxCertUtil.exe" -ArgumentList "add-trusted-publisher ${certs}\vbox*.cer", "--root ${certs}\vbox*.cer" -Wait;
Start-Process -FilePath $exe -ArgumentList '/with_wddm', '/S' -Wait;
return;
}
}
'VBoxGuestAdditions.iso is not attached to this VM.';
} *>&1 | Out-String -Width 1KB -Stream >> 'C:\Windows\Setup\Scripts\VBoxGuestAdditions.log';
</File>
<File path="C:\Windows\Setup\Scripts\VMwareTools.ps1">
& {
foreach( $letter in 'DEFGHIJKLMNOPQRSTUVWXYZ'.ToCharArray() ) {
$exe = "${letter}:\setup.exe";
if( ( Get-Item -LiteralPath $exe -ErrorAction 'SilentlyContinue' | Select-Object -ExpandProperty 'VersionInfo' | Select-Object -ExpandProperty 'ProductName' ) -eq 'VMware Tools' ) {
Start-Process -FilePath $exe -ArgumentList '/s /v /qn REBOOT=R' -Wait;
return;
}
}
'VMware Tools image (windows.iso) is not attached to this VM.';
} *>&1 | Out-String -Width 1KB -Stream >> 'C:\Windows\Setup\Scripts\VMwareTools.log';
</File>
<File path="C:\Windows\Setup\Scripts\SetStartPins.ps1">
$json = '{
"pinnedList": [
{
"packagedAppId": "AutoOS_xxtketq8p23nt!App"
}
]
}';
if( [System.Environment]::OSVersion.Version.Build -lt 20000 ) {
return;
}
$key = 'Registry::HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start';
New-Item -Path $key -ItemType 'Directory' -ErrorAction 'SilentlyContinue';
Set-ItemProperty -LiteralPath $key -Name 'ConfigureStartPins' -Value $json -Type 'String';
</File>
<File path="C:\Windows\Setup\Scripts\unattend-01.reg">
Windows Registry Editor Version 5.00
; Enable rounded corners and transparency without graphics drivers
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Dwm]
"ForceEffectMode"=dword:00000002
; Enable developer mode
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Appx]
"AllowDevelopmentWithoutDevLicense"=dword:00000001
; Enable "Display highly detailed status messages"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"VerboseStatus"=dword:00000001
; Enable "Do not include drivers with Windows Updates"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"ExcludeWUDriversInQualityUpdate"=dword:00000001
; Set "Specify search order for device driver source locations" to "Do not search Windows Update"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"SearchOrderConfig"=dword:00000000
; Enable "Prevent automatic download of applications associated with device metadata"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Device Metadata]
"PreventDeviceMetadataFromNetwork"=dword:00000001
; Disable Co-Installers
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Installer]
"DisableCoInstallers"=dword:00000001
; Disable new Windows Start Menu layout
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FeatureManagement\Overrides\8\3036241548]
"EnabledState"=dword:00000001
"EnabledStateOptions"=dword:00000000
"Variant"=dword:00000000
"VariantPayload"=dword:00000000
"VariantPayloadKind"=dword:00000000
; Enable "Turn off display of recent search entries in the File Explorer search box"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
"DisableSearchBoxSuggestions"=dword:00000001
; Hide Windows Update tray icon
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]
"TrayIconVisibility"=dword:00000000
; Rename device
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
"Model"="AutoOS"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"RegisteredOrganization"="AutoOS"
"EditionSubManufacturer"="tinodin"
"EditionSubstring"="AutoOS"
"EditionSubVersion"="AutoOS"
</File>
<File path="C:\Windows\Setup\Scripts\unattend-02.cmd">
label C: AutoOS
bcdedit /set {current} description "AutoOS"
bcdedit /set bootmenupolicy legacy
bcdedit /timeout 6
</File>
<File path="C:\Windows\Setup\Scripts\unattend-03.cmd">
fsutil behavior set allowextchar 0
fsutil behavior set bugcheckoncorrupt 0
fsutil behavior set disable8dot3 1
fsutil behavior set disablecompression 1
fsutil behavior set disabledeletenotify 0
fsutil behavior set disableencryption 1
fsutil behavior set disablelastaccess 1
fsutil behavior set disablespotcorruptionhandling 1
fsutil behavior set enablenonpagedntfs 1
fsutil behavior set encryptpagingfile 0
fsutil behavior set quotanotify 86400
fsutil behavior set symlinkevaluation L2L:1
fsutil repair set C: 0
</File>
<File path="C:\Windows\Setup\Scripts\unattend-04.ps1">
# Precompile .NET assemblies (speeds up PowerShell loading times)
$env:path = "$([Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory());" + $env:path
[AppDomain]::CurrentDomain.GetAssemblies().Location | ? {$_} | % {
ngen install $_ | Out-Null
}
</File>
<File path="C:\Windows\Setup\Scripts\unattend-05.ps1">
# Pause windows updates for 100 years
$formatter = { param($date) $date.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ssK") }
$now = [datetime]::UtcNow
$start = $formatter.Invoke($now)
$end = $formatter.Invoke($now.AddYears(100))
$currentVersion = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').DisplayVersion
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseFeatureUpdatesStartTime' -Value $start -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseFeatureUpdatesEndTime' -Value $end -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseQualityUpdatesStartTime' -Value $start -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseQualityUpdatesEndTime' -Value $end -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseUpdatesStartTime' -Value $start -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name 'PauseUpdatesExpiryTime' -Value $end -Type String -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Name 'TargetReleaseVersion' -Value 1 -Type DWord -Force
Set-ItemProperty -LiteralPath HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Name 'TargetReleaseVersionInfo' -Value $currentVersion -Type String -Force
</File>
<File path="C:\Windows\Setup\Scripts\unattend-06.cmd">
bcdedit /set bootmenupolicy legacy
bcdedit /timeout 6
</File>
<File path="C:\Windows\Setup\Scripts\unattend-07.ps1">
# Parse releases
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/tinodin/AutoOS/releases" -Headers @{ "User-Agent" = "PowerShell" }
$latest = $releases | Sort-Object Published_at -Descending | Select-Object -First 1
$certAsset = $latest.assets | Where-Object { $_.name -like "*.cer" } | Select-Object -First 1
$msixAsset = $latest.assets | Where-Object { $_.name -like "*.msix" } | Select-Object -First 1
$certUrl = $certAsset.browser_download_url
$msixUrl = $msixAsset.browser_download_url
$certPath = Join-Path $env:TEMP $certAsset.name
$msixPath = Join-Path $env:TEMP $msixAsset.name
# Download and install certificate
Invoke-WebRequest -Uri $certUrl -OutFile $certPath
Import-Certificate -FilePath $certPath -CertStoreLocation Cert:\LocalMachine\TrustedPeople
Remove-Item -Path $certPath
# Download and install msix
Start-BitsTransfer -Source $msixUrl -Destination $msixPath
Add-AppxPackage -Path $msixPath
Remove-Item -Path $msixPath
</File>
<File path="C:\Windows\Setup\Scripts\unattend-08.reg">
Windows Registry Editor Version 5.00
; Hide search box
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"SearchboxTaskbarMode"=dword:00000000
; Add settings to start menu shortcuts
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start]
"VisiblePlaces"=hex:86,08,73,52,aa,51,43,42,9f,7b,27,76,58,46,59,d4
</File>
<File path="C:\Windows\Setup\Scripts\unattend-09.ps1">
# Pin Recycle Bin to quick access
$RBPath = 'HKCU:\Software\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\pintohome\command\'
$name = "DelegateExecute"
$value = "{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
New-Item -Path $RBPath -Force | out-null
New-ItemProperty -Path $RBPath -Name $name -Value $value -PropertyType String -Force | out-null
$oShell = New-Object -ComObject Shell.Application
$trash = $oShell.Namespace("shell:::{645FF040-5081-101B-9F08-00AA002F954E}")
$trash.Self.InvokeVerb("PinToHome")
Remove-Item -Path "HKCU:\Software\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}" -Recurse
</File>
<File path="C:\Windows\Setup\Scripts\unattend-0a.ps1">
# Set correct timezone, regional format, keyboard layout and secondary language
$PSDefaultParameterValues['Invoke-WebRequest:UseBasicParsing'] = $true
Invoke-WebRequest 'https://raw.githubusercontent.com/tinodin/AutoOS/master/Assets/Scripts/timedateregion.ps1' -OutFile "$env:TEMP\timedateregion.ps1"
& "$env:TEMP\timedateregion.ps1"
Start-Process "shell:AppsFolder\AutoOS_xxtketq8p23nt!App"
</File>
<File path="C:\Windows\Setup\Scripts\unattend-0b.reg">
Windows Registry Editor Version 5.00
; Enable notifications for Snipping Tool
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.ScreenSketch_8wekyb3d8bbwe!App]
"Enabled"=dword:00000001
; Disable notifications for Settings
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel]
"Enabled"=dword:00000000
; Disable notifications for Microsoft Store
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.WindowsStore_8wekyb3d8bbwe!App]
"Enabled"=dword:00000000
; Disable notifications for OneDrive
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop]
"Enabled"=dword:00000000
; Disable suggested notifications
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested]
"Enabled"=dword:00000000
; Disable security and maintenance notifications
[HKEY_USERS\DefaultUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance]
"Enabled"=dword:00000000
; Disable startup app notifications
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp]
"Enabled"=dword:00000000
; Disable pin notifications
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.PinConsent]
"Enabled"=dword:00000000
; Enable "Remove the Security and Maintenance icon"
[HKEY_USERS\DefaultUser\Software\Policies\Microsoft\Windows\Explorer]
"HideSCAHealth"=dword:00000001
; Hide the Bluetooth tray icon
[HKEY_USERS\DefaultUser\Control Panel\Bluetooth]
"Notification Area Icon"=dword:00000000
; Hide Desktop icons
[HKEY_USERS\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"HideIcons"=dword:00000001
</File>
<File path="C:\Windows\Setup\Scripts\Specialize.ps1">
$scripts = @(
{
& 'C:\Windows\Setup\Scripts\GetComputerName.ps1' > 'C:\Windows\Setup\Scripts\ComputerName.txt';
Start-Process -FilePath ( Get-Process -Id $PID ).Path -ArgumentList '-ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\SetComputerName.ps1"' -WindowStyle 'Hidden';
Start-Sleep -Seconds 10;
};
{
reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f;
};
{
net.exe accounts /lockoutthreshold:0;
};
{
net.exe accounts /maxpwage:UNLIMITED;
};
{
reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f;
[System.Diagnostics.EventLog]::CreateEventSource( 'UnattendGenerator', 'Application' );
};
{
Register-ScheduledTask -TaskName 'UnlockStartLayout' -Xml $( Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\UnlockStartLayout.xml' -Raw );
};
{
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v VerifiedAndReputablePolicyState /t REG_DWORD /d 0 /f;
};
{
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f
};
{
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
};
{
Remove-Item -LiteralPath 'C:\Users\Public\Desktop\Microsoft Edge.lnk' -ErrorAction 'SilentlyContinue' -Verbose;
};
{
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f;
};
{
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\BitLocker" /v "PreventDeviceEncryption" /t REG_DWORD /d 1 /f;
};
{
reg.exe add "HKLM\Software\Policies\Microsoft\Edge" /v HideFirstRunExperience /t REG_DWORD /d 1 /f;
};
{
reg.exe add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v BackgroundModeEnabled /t REG_DWORD /d 0 /f;
reg.exe add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v StartupBoostEnabled /t REG_DWORD /d 0 /f;
};
{
& 'C:\Windows\Setup\Scripts\SetStartPins.ps1';
};
{
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMAeroPeekEnabled" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMSaveThumbnailEnabled" -Name 'DefaultValue' -Value 0 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
Set-ItemProperty -LiteralPath "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow" -Name 'DefaultValue' -Value 1 -Type 'DWord' -Force;
};
{
reg.exe add "HKU\.DEFAULT\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 10 /f;
};
{
reg.exe add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "DisableWpbtExecution" /t REG_DWORD /d 1 /f;
};
{
reg.exe import "C:\Windows\Setup\Scripts\unattend-01.reg";
};
{
C:\Windows\Setup\Scripts\unattend-02.cmd;
};
{
C:\Windows\Setup\Scripts\unattend-03.cmd;
};
);
& {
[float] $complete = 0;
[float] $increment = 100 / $scripts.Count;
foreach( $script in $scripts ) {
Write-Progress -Id 0 -Activity 'Running scripts to customize your Windows installation. Do not close this window.' -PercentComplete $complete;
'*** Will now execute command «{0}».' -f $(
$script.ToString().Trim() -replace '\s+', ' ' -replace '^(.{99})(.+)$', '$1…';
);
$start = [datetime]::Now;
& $script;
'*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds;
"`r`n" * 3;
$complete += $increment;
}
} *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\Specialize.log";
</File>
<File path="C:\Windows\Setup\Scripts\UserOnce.ps1">
$scripts = @(
{
[System.Diagnostics.EventLog]::WriteEntry( 'UnattendGenerator', "User '$env:USERNAME' has requested to unlock the Start menu layout.", [System.Diagnostics.EventLogEntryType]::Information, 1 );
};
{
Remove-Item -LiteralPath "${env:USERPROFILE}\Desktop\Microsoft Edge.lnk" -ErrorAction 'SilentlyContinue' -Verbose;
};
{
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f;
};
{
Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'LaunchTo' -Type 'DWord' -Value 1;
};
{
Set-ItemProperty -LiteralPath 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects' -Name 'VisualFXSetting' -Type 'DWord' -Value 3 -Force;
};
{
Get-Process -Name 'explorer' -ErrorAction 'SilentlyContinue' | Where-Object -FilterScript {
$_.SessionId -eq ( Get-Process -Id $PID ).SessionId;
} | Stop-Process -Force;
};
);
& {
[float] $complete = 0;
[float] $increment = 100 / $scripts.Count;
foreach( $script in $scripts ) {
Write-Progress -Id 0 -Activity 'Running scripts to configure this user account. Do not close this window.' -PercentComplete $complete;
'*** Will now execute command «{0}».' -f $(
$script.ToString().Trim() -replace '\s+', ' ' -replace '^(.{99})(.+)$', '$1…';
);
$start = [datetime]::Now;
& $script;
'*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds;
"`r`n" * 3;
$complete += $increment;
}
} *>&1 | Out-String -Width 1KB -Stream >> "$env:TEMP\UserOnce.log";
</File>
<File path="C:\Windows\Setup\Scripts\DefaultUser.ps1">
$scripts = @(
{
reg.exe add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Explorer" /v "StartLayoutFile" /t REG_SZ /d "C:\Windows\Setup\Scripts\TaskbarLayoutModification.xml" /f;
reg.exe add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Explorer" /v "LockedStartLayout" /t REG_DWORD /d 1 /f;
};
{
reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f;
};
{
reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f;
};
{
reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f;
};
{
foreach( $root in 'Registry::HKU\.DEFAULT', 'Registry::HKU\DefaultUser' ) {
Set-ItemProperty -LiteralPath "$root\Control Panel\Keyboard" -Name 'InitialKeyboardIndicators' -Type 'String' -Value 2 -Force;
}
};
{
$params = @{
LiteralPath = 'Registry::HKU\DefaultUser\Control Panel\Mouse';
Type = 'String';
Value = 0;
Force = $true;
};
Set-ItemProperty @params -Name 'MouseSpeed';
Set-ItemProperty @params -Name 'MouseThreshold1';
Set-ItemProperty @params -Name 'MouseThreshold2';
};
{
reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings" /v TaskbarEndTask /t REG_DWORD /d 1 /f;
};
{
reg.exe add "HKU\DefaultUser\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 10 /f;
};
{
reg.exe import "C:\Windows\Setup\Scripts\unattend-0b.reg";
};
{
reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "UnattendedSetup" /t REG_SZ /d "powershell.exe -WindowStyle \""Hidden\"" -ExecutionPolicy \""Unrestricted\"" -NoProfile -File \""C:\Windows\Setup\Scripts\UserOnce.ps1\""" /f;
};
);
& {
[float] $complete = 0;
[float] $increment = 100 / $scripts.Count;
foreach( $script in $scripts ) {
Write-Progress -Id 0 -Activity 'Running scripts to modify the default user’’s registry hive. Do not close this window.' -PercentComplete $complete;
'*** Will now execute command «{0}».' -f $(
$script.ToString().Trim() -replace '\s+', ' ' -replace '^(.{99})(.+)$', '$1…';
);
$start = [datetime]::Now;
& $script;
'*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds;
"`r`n" * 3;
$complete += $increment;
}
} *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\DefaultUser.log";
</File>
<File path="C:\Windows\Setup\Scripts\FirstLogon.ps1">
$scripts = @(
{
Set-ItemProperty -LiteralPath 'Registry::HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AutoLogonCount' -Type 'DWord' -Force -Value 0;
};
{
Disable-ComputerRestore -Drive 'C:\';
};
{
& 'C:\Windows\Setup\Scripts\VBoxGuestAdditions.ps1';
};
{
& 'C:\Windows\Setup\Scripts\VMwareTools.ps1';
};
{
& 'C:\Windows\Setup\Scripts\unattend-04.ps1';
};
{
& 'C:\Windows\Setup\Scripts\unattend-05.ps1';
};
{
C:\Windows\Setup\Scripts\unattend-06.cmd;
};
{
& 'C:\Windows\Setup\Scripts\unattend-07.ps1';
};
{
reg.exe import "C:\Windows\Setup\Scripts\unattend-08.reg";
};
{
& 'C:\Windows\Setup\Scripts\unattend-09.ps1';
};
{
& 'C:\Windows\Setup\Scripts\unattend-0a.ps1';
};
{
Remove-Item -LiteralPath @(
'C:\Windows\Panther\unattend.xml';
'C:\Windows\Panther\unattend-original.xml';
'C:\Windows\Setup\Scripts\Wifi.xml';
) -Force -ErrorAction 'SilentlyContinue' -Verbose;
};
);
& {
[float] $complete = 0;
[float] $increment = 100 / $scripts.Count;
foreach( $script in $scripts ) {
Write-Progress -Id 0 -Activity 'Running scripts to finalize your Windows installation. Do not close this window.' -PercentComplete $complete;
'*** Will now execute command «{0}».' -f $(
$script.ToString().Trim() -replace '\s+', ' ' -replace '^(.{99})(.+)$', '$1…';
);
$start = [datetime]::Now;
& $script;
'*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds;
"`r`n" * 3;
$complete += $increment;
}
} *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\FirstLogon.log";
</File>
</Extensions>
</unattend>