-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathWin10-Menu.ps1
3664 lines (3424 loc) · 205 KB
/
Win10-Menu.ps1
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
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
##########
# Win 10 Setup Script/Tweaks with Menu(GUI)
#
# Modded Script + Menu(GUI) By
# Author: Madbomb122
# Website: https://GitHub.com/Madbomb122/Win10Script/
#
# Original Basic Script By
# Author: Disassembler0
# Website: https://GitHub.com/Disassembler0/Win10-Initial-Setup-Script/
# Version: 2.0, 2017-01-08 (Version Copied)
#
$Script_Version = '3.7.2'
$Script_Date = 'Jul-31-2021'
$Release_Type = 'Stable'
##########
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
## !! !!
## !! SAFE TO EDIT ITEM !!
## !! AT BOTTOM OF SCRIPT !!
## !! !!
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
## !! !!
## !! CAUTION !!
## !! DO NOT EDIT PAST THIS POINT !!
## !! !!
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<#------------------------------------------------------------------------------#>
$Copyright =' The MIT License (MIT)
Copyright (c) 2017 Disassembler
-Original Basic Version of Script
Copyright (c) 2017-2021 Madbomb122
-Modded + Menu Version of Script
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice(s), this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'
<#--------------------------------------------------------------------------------
.Prerequisite to run script
System: Windows 10
Files: This script
.DESCRIPTION
Makes it easier to setup an existing or new install with moded setting
.BASIC USAGE
Use the Menu and set what you want then Click Run the Script
.ADVANCED USAGE
One of the following Methods...
1. Edit values at bottom of the script
2. Edit bat file and run
3. Run the script with one of these switches (space between multiple)
Switch Description of Switch
-- Basic Switches --
-atos Accepts ToS
-auto Implies -Atos...Closes on - User Errors, or End of Script
-crp Creates Restore Point
-dnr Do Not Restart when done
-- Run Script Switches --
-run Runs script with settings in script
-run FILENME Runs script with settings in the file FILENME
-run wd Runs script with win default settings
-- Load Script Switches --
-load FILENME Loads script with settings in the file FILENME
-load wd Loads script with win default settings
--Update Switches--
-usc Checks for Update to Script file before running
-sic Skips Internet Check
------------------------------------------------------------------------------#>
##########
# Pre-Script -Start
##########
If([Environment]::OSVersion.Version.Major -ne 10) {
Write-Host 'Sorry, this Script supports Windows 10 ONLY.' -ForegroundColor 'cyan' -BackgroundColor 'black'
If($Automated -ne 1){ Read-Host -Prompt "`nPress Any key to Close..." } ;Exit
}
If($Release_Type -eq 'Stable'){ $ErrorActionPreference = 'SilentlyContinue' } Else{ $Release_Type = 'Testing' }
$Script:PassedArg = $args
If(!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" $PassedArg" -Verb RunAs ;Exit
}
$MySite = 'https://GitHub.com/madbomb122/Win10Script'
$URL_Base = $MySite.Replace('GitHub','raw.GitHub')+'/master/'
$Version_Url = $URL_Base + 'Version/Version.csv'
$Donate_Url = 'https://www.amazon.com/gp/registry/wishlist/YBAYWBJES5DE/'
$FileBase = $(If($psISE -ne $Null){ Split-Path $psISE.CurrentFile.FullPath -Parent } Else{ $PSScriptRoot }) + '\'
$Script:Win10Ver = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseID).ReleaseId
$Script:OSBit = If([System.Environment]::Is64BitProcess){ 64 } Else{ 32 }
##########
# Pre-Script -End
##########
# Needed Variable -Start
##########
$TasksList = @(
'Application Experience',
'Consolidator',
'Customer Experience Improvement Program',
'DmClient',
'KernelCeipTask',
'Microsoft Compatibility Appraiser',
'ProgramDataUpdater',
'Proxy',
'QueueReporting',
'SmartScreenSpecific',
'UsbCeip')
<#
'AgentFallBack2016',
'AitAgent',
'CreateObjectTask',
#'Diagnostics',
'DmClientOnScenarioDownload',
'FamilySafetyMonitor',
'FamilySafetyRefresh',
'FamilySafetyRefreshTask',
'FamilySafetyUpload',
#'File History (maintenance mode)',
'GatherNetworkInfo',
'MapsUpdateTask',
#'Microsoft-Windows-DiskDiagnosticDataCollector',
'MNO Metadata Parser',
'OfficeTelemetryAgentFallBack',
'OfficeTelemetryAgentLogOn',
'OfficeTelemetryAgentLogOn2016',
'Sqm-Tasks',
#'StartupAppTask',
'Uploader',
'XblGameSaveTask',
'XblGameSaveTaskLogon')
#>
$Xbox_Apps = @(Get-AppxPackage *xbox*).Name
$musnotification_files = @("$Env:windir\System32\musnotification.exe","$Env:windir\System32\musnotificationux.exe")
$AppxOptions=@('Skip','Unhide','Hide','Uninstall')
$colors = @(
'black', #0
'blue', #1
'cyan', #2
'darkblue', #3
'darkcyan', #4
'darkgray', #5
'darkgreen', #6
'darkmagenta',#7
'darkred', #8
'darkyellow', #9
'gray', #10
'green', #11
'magenta', #12
'red', #13
'white', #14
'yellow') #15
#Unicode Box Codes
$Tlc = [char]0x2554 # ╔
$Blc = [char]0x255A # ╚
$Trc = [char]0x2557 # ╗
$Brc = [char]0x255D # ╝
$Sid = [char]0x2551 # ║
$ToB = [char]0x2550 # ═
Function BoxItem([String]$TxtToDisplay) {
$TLen = $TxtToDisplay.Length
$LLen = $TLen+9
$Ttop = "`n$Tlc".PadRight($LLen-1,$ToB) + $Trc
$TBot = "$Blc".PadRight($LLen-2,$ToB) + $Brc
DisplayOut $Ttop -C 14
DisplayOut $Sid," $TxtToDisplay ",$Sid -C 14,13,14
DisplayOut $TBot -C 14
}
Function AnyKeyClose{ Read-Host -Prompt "`nPress Any key to Close..." }
##########
# Needed Variable -End
##########
# Update Functions -Start
##########
Function UpdateCheck {
If(InternetCheck) {
$CSV_Ver = Invoke-WebRequest $Version_Url | ConvertFrom-Csv
$CSVLine,$RT = If($Release_Type -eq 'Stable'){ 0,'' } Else{ 1,'Testing/' }
$WebScriptVer = $CSV_Ver[$CSVLine].Version + "." + $CSV_Ver[$CSVLine].MinorVersion
If($WebScriptVer -gt $Script_Version){ ScriptUpdateFun $RT }
} Else {
Clear-Host
DisplayMisc -Line
DisplayOutLML (''.PadRight(22)+'Error') -C 13
DisplayMisc -Line
DisplayMisc
DisplayOutLML 'No Internet connection detected or GitHub.com' -C 2
DisplayOutLML 'is currently down.' -C 2
DisplayOutLML 'Tested by pinging GitHub.com' -C 2
DisplayMisc
DisplayOutLML 'To skip use one of the following methods' -C 2
DisplayOut '|',' 1. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14
DisplayOut '|',' 2. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14
DisplayOut '|',' 3. Run Script or Bat file with ','-sic',' switch ','|' -C 14,2,15,2,14
DisplayMisc
DisplayMisc -Line
AnyKeyClose
}
}
Function ScriptUpdateFun([String]$RT) {
$Script_Url = $URL_Base + $RT + 'Win10-Menu.ps1'
$ScrpFilePath = $FileBase + 'Win10-Menu.ps1'
$FullVer = "$WebScriptVer.$WebScriptMinorVer"
$UpArg = ''
If($Accept_ToS -ne 1){ $UpArg += '-atos ' }
If($InternetCheck -eq 1){ $UpArg += '-sic ' }
If($CreateRestorePoint -eq 1){ $UpArg += '-crp ' }
If($Restart -eq 0){ $UpArg += '-dnr' }
$UpArg += If($RunScr){ "-run $TempSetting " } Else{ "-load $TempSetting " }
Clear-Host
DisplayMisc -Line
DisplayMisc
DisplayOutLML (''.PadRight(18)+'Update Found!') -C 13 -L
DisplayMisc
DisplayOut '|',' Updating from version ',"$Script_Version".PadRight(30),'|' -C 14,15,11,14 -L
DisplayMisc
DisplayOut '|',' Downloading version ',"$FullVer".PadRight(31),'|' -C 14,15,11,14 -L
DisplayOutLML 'Will run after download is complete.' -C 15 -L
DisplayMisc
DisplayMisc -Line
(New-Object System.Net.WebClient).DownloadFile($Script_Url, $ScrpFilePath)
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$ScrpFilePath`" $UpArg" -Verb RunAs
Exit
}
Function InternetCheck{ If($InternetCheck -eq 1 -or (Test-Connection www.GitHub.com -Count 1 -Quiet)){ Return $True } Return $False }
##########
# Update Functions -End
##########
# Multi Use Functions -Start
##########
Function ThanksDonate {
DisplayOut "`nThanks for using my script." -C 11
DisplayOut 'If you like this script please consider giving me a donation.' -C 11
DisplayOut "`nLink to donation:" -C 15
DisplayOut $Donate_Url -C 2
}
Function cmpv{ Compare-Object (Get-Variable -Scope Script) $AutomaticVariables -Property Name -PassThru | Where-Object -Property Name -ne 'AutomaticVariables' | Where-Object { $_ -NotIn $WPFList } }
Function Openwebsite([String]$Url){ Start-Process $Url }
Function ShowInvalid([Int]$InvalidA){ If($InvalidA -eq 1){ Write-Host "`nInvalid Input" -ForegroundColor Red -BackgroundColor Black -NoNewline } Return 0 }
Function CheckSetPath([String]$RPath){ While(!(Test-Path $RPath)){ New-Item -Path $RPath -Force | Out-Null } Return $RPath }
Function RemoveSetPath([String]$RPath){ If(Test-Path $RPath){ Remove-Item -Path $RPath -Recurse } }
Function StartOrGui{ SetAppxVar ;If($RunScr -eq $True){ RunScript } ElseIf($AcceptToS -ne 1){ GuiStart } }
Function DisplayOut {
Param ( [Alias ("T")] [String[]]$Text, [Alias ("C")] [Int[]]$Color )
For($i=0 ;$i -lt $Text.Length ;$i++){ Write-Host $Text[$i] -ForegroundColor $colors[$Color[$i]] -BackgroundColor 'Black' -NoNewLine } ;Write-Host
}
Function DisplayOutLML {
Param ( [Alias('T')] [String]$Text, [Alias('C')] [Int[]]$Color )
DisplayOut '| ',"$Text".PadRight(50),' |' -C 14,$Color,14
}
Function DisplayMisc {
Param ( [Switch]$Line, [Int]$Misc = 14 )
$txt = If($Line){ '|'.PadRight(53,'-') + '|' } Else{ '|'.PadRight(53) + '|' } #Line or Blank Spaces
$Splat = @{ Text = $txt ;Color = $Misc }
DisplayOut @Splat
}
Function ScriptPreStart {
SetDefault
If($PassedArg.Length -gt 0){ ArgCheck }
If($AcceptToS -eq 1){ TOS } Else{ StartOrGui }
}
Function SetAppxVar {
$Script:DataGridApps = [PSCustomObject] @{ AppxName = 'Microsoft.3DBuilder'; CName = '3DBuilder'; VarName = 'APP_3DBuilder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DBuilder]},
[PSCustomObject] @{ AppxName = 'Microsoft.Microsoft3DViewer'; CName = '3DViewer'; VarName = 'APP_3DViewer'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DViewer]},
[PSCustomObject] @{ AppxName = 'Microsoft.BingWeather'; CName = 'Bing Weather'; VarName = 'APP_BingWeather'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_BingWeather]},
[PSCustomObject] @{ AppxName = 'Microsoft.CommsPhone'; CName = 'Phone'; VarName = 'APP_CommsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_CommsPhone]},
[PSCustomObject] @{ AppxName = 'Microsoft.windowscommunicationsapps'; CName = 'Calendar & Mail'; VarName = 'APP_Communications'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Communications]},
[PSCustomObject] @{ AppxName = 'Microsoft.GetHelp'; CName = "Microsoft's Self-Help"; VarName = 'APP_GetHelp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_GetHelp]},
[PSCustomObject] @{ AppxName = 'Microsoft.Getstarted'; CName = 'Get Started Link'; VarName = 'APP_Getstarted'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Getstarted]},
[PSCustomObject] @{ AppxName = 'Microsoft.Messaging'; CName = 'Messaging'; VarName = 'APP_Messaging'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Messaging]},
[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftOfficeHub'; CName = 'Get Office Link'; VarName = 'APP_MicrosoftOffHub'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MicrosoftOffHub]},
[PSCustomObject] @{ AppxName = 'Microsoft.MovieMoments'; CName = 'Movie Moments'; VarName = 'APP_MovieMoments'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MovieMoments]},
[PSCustomObject] @{ AppxName = '4DF9E0F8.Netflix'; CName = 'Netflix'; VarName = 'APP_Netflix'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Netflix]},
[PSCustomObject] @{ AppxName = 'Microsoft.Office.OneNote'; CName = 'Office OneNote'; VarName = 'APP_OfficeOneNote'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeOneNote]},
[PSCustomObject] @{ AppxName = 'Microsoft.Office.Sway'; CName = 'Office Sway'; VarName = 'APP_OfficeSway'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeSway]},
[PSCustomObject] @{ AppxName = 'Microsoft.OneConnect'; CName = 'One Connect'; VarName = 'APP_OneConnect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OneConnect]},
[PSCustomObject] @{ AppxName = 'Microsoft.People'; CName = 'People'; VarName = 'APP_People'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_People]},
[PSCustomObject] @{ AppxName = 'Microsoft.Windows.Photos'; CName = 'Photos'; VarName = 'APP_Photos'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Photos]},
[PSCustomObject] @{ AppxName = 'Microsoft.SkypeApp'; CName = 'Skype'; VarName = 'APP_SkypeApp1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SkypeApp1]},
[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftSolitaireCollection'; CName = 'Microsoft Solitaire'; VarName = 'APP_SolitaireCollect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SolitaireCollect]},
[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftStickyNotes'; CName = 'Sticky Notes'; VarName = 'APP_StickyNotes'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_StickyNotes]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsSoundRecorder'; CName = 'Voice Recorder'; VarName = 'APP_VoiceRecorder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_VoiceRecorder]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsAlarms'; CName = 'Alarms and Clock'; VarName = 'APP_WindowsAlarms'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsAlarms]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCalculator'; CName = 'Calculator'; VarName = 'APP_WindowsCalculator'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCalculator]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCamera'; CName = 'Camera'; VarName = 'APP_WindowsCamera'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCamera]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedback'; CName = 'Windows Feedback'; VarName = 'APP_WindowsFeedbak1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak1]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedbackHub'; CName = 'Windows Feedback Hub'; VarName = 'APP_WindowsFeedbak2'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak2]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsMaps'; CName = 'Maps'; VarName = 'APP_WindowsMaps'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsMaps]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsPhone'; CName = 'Phone Companion'; VarName = 'APP_WindowsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsPhone]},
[PSCustomObject] @{ AppxName = 'Microsoft.WindowsStore'; CName = 'Microsoft Store'; VarName = 'APP_WindowsStore'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsStore]},
[PSCustomObject] @{ AppxName = 'Microsoft.Wallet'; CName = 'Stores Credit and Debit Card Information'; VarName = 'APP_WindowsWallet'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsWallet]},
[PSCustomObject] @{ AppxName = $Xbox_Apps; CName = 'Xbox Apps (All)'; VarName = 'APP_XboxApp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_XboxApp]},
[PSCustomObject] @{ AppxName = 'Microsoft.ZuneMusic'; CName = 'Groove Music'; VarName = 'APP_ZuneMusic'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneMusic]},
[PSCustomObject] @{ AppxName = 'Microsoft.ZuneVideo'; CName = 'Groove Video'; VarName = 'APP_ZuneVideo'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneVideo]}
If($WPF_dataGrid){ $WPF_dataGrid.ItemsSource = $DataGridApps }
}
Function PassVal([String]$Pass){ Return $PassedArg[$PassedArg.IndexOf($Pass)+1] }
Function ArgCheck {
If($PassedArg -In '-help','-h'){ ShowHelp }
If($PassedArg -Contains '-copy'){ ShowCopyright ;Exit }
If($PassedArg -Contains '-run') {
$tmp = PassVal '-run'
If(Test-Path -LiteralPath $tmp -PathType Leaf) {
LoadSettingFile $tmp ;$Script:RunScr = $True
} ElseIf($tmp -In 'wd','windefault') {
LoadWinDefault ;$Script:RunScr = $True
} ElseIf($tmp.StartsWith('-') -or $PassedArg.IndexOf('-run') -eq $PassedArg.Length) {
$Script:RunScr = $True
}
}
If($PassedArg -Contains '-load') {
$tmp = PassVal '-load'
If(Test-Path -LiteralPath $tmp -PathType Leaf){ LoadSettingFile $tmp } ElseIf($tmp -In 'wd','windefault'){ LoadWinDefault }
}
If($PassedArg -Contains '-sic'){ $Script:InternetCheck = 1 }
If($PassedArg -Contains '-usc'){ $Script:VersionCheck = 1 }
If($PassedArg -Contains '-atos'){ $Script:AcceptToS = 'Accepted' }
If($PassedArg -Contains '-dnr'){ $Script:Restart = 0 }
If($PassedArg -Contains '-auto'){ $Script:Automated = 1 ;$Script:AcceptToS = 'Accepted' }
If($PassedArg -Contains '-crp') {
$Script:CreateRestorePoint = 1
$tmp = PassVal '-crp'
If(!$tmp.StartsWith('-')){ $Script:RestorePointName = $tmp }
}
}
Function ShowHelp {
Clear-Host
DisplayOut ' List of Switches' -C 13
DisplayOut ''.PadRight(53,'-') -C 14
DisplayOut ' Switch ',"Description of Switch`n".PadLeft(31) -C 14,15
DisplayOut '-- Basic Switches --' -C 2
DisplayOut ' -atos ',' Accepts ToS' -C 14,15
DisplayOut ' -auto ',' Implies ','-atos','...Runs the script to be Automated.. Closes on - User Input, Errors, or End of Script' -C 14,15,14,15
DisplayOut ' -crp ',' Creates Restore Point' -C 14,15
DisplayOut ' -dnr ',' Do Not Restart when done' -C 14,15
DisplayOut "`n-- Run Script Switches --" -C 2
DisplayOut ' -run ',' Runs script with settings in script' -C 14,15
DisplayOut ' -run ','FILENAME ',' Runs script with settings in the file',' FILENAME' -C 14,11,15,11
DisplayOut ' -run wd ',' Runs script with win default settings' -C 14,15
DisplayOut "`n-- Load Script Switches --" -C 2
DisplayOut ' -run ','FILENAME ',' Loads script with settings in the file',' FILENAME' -C 14,11,15,11
DisplayOut ' -load wd ',' Loads script with win default settings' -C 14,15
DisplayOut "`n--Update Switches--" -C 2
DisplayOut ' -usc ',' Checks for Update to Script file before running' -C 14,15
DisplayOut ' -sic '," Skips Internet Check, if you can't ping GitHub.com for some reason" -C 14,15
DisplayOut "`n--Help--" -C 2
DisplayOut ' -help ',' Shows list of switches, then exits script.. alt ','-h' -C 14,15,14
DisplayOut ' -copy ',' Shows Copyright/License Information, then exits script' -C 14,15
AnyKeyClose
Exit
}
Function ShowCopyright { Clear-Host ;DisplayOut $Copyright -C 14 }
Function TOSDisplay([Switch]$C) {
If(!$C){ Clear-Host }
$BC = 14
If($Release_Type -ne 'Stable') {
$BC = 15
DisplayMisc -Line -Misc 15
DisplayOut '|'.PadRight(22),'Caution!!!'.PadRight(31),'|' -C 15,13,15
DisplayMisc -Misc 15
DisplayOut '|',' This script is still being tested. ','|' -C 15,14,15
DisplayOut '|'.PadRight(17),'USE AT YOUR OWN RISK.'.PadRight(36),'|' -C 15,14,15
DisplayMisc -Misc 15
}
DisplayMisc -Line -Misc $BC
DisplayOut '|'.PadRight(21),'Terms of Use'.PadRight(32),'|' -C $BC,11,$BC
DisplayMisc -Line -Misc $BC
DisplayMisc -Misc $BC
DisplayOut '|',' This program comes with ABSOLUTELY NO WARRANTY. ','|' -C $BC,2,$BC
DisplayOut '|',' This is free software, and you are welcome to ','|' -C $BC,2,$BC
DisplayOut '|',' redistribute it under certain conditions.'.PadRight(52),'|' -C $BC,2,$BC
DisplayMisc -Misc $BC
DisplayOut '|',' Read License file for full Terms.'.PadRight(52),'|' -C $BC,2,$BC
DisplayMisc -Misc $BC
DisplayOut '|',' Use the switch ','-copy',' to see License Information or ','|' -C $BC,2,14,2,$BC
DisplayOut '|',' enter ','L',' bellow.'.PadRight(44),'|' -C $BC,2,14,2,$BC
DisplayMisc -Misc $BC
DisplayMisc -Line -Misc $BC
}
Function TOS {
$CopyR = $False
While($TOS -ne 'Out') {
TOSDisplay -c:$CopyR
$CopyR = $False
$Invalid = ShowInvalid $Invalid
$TOS = Read-Host "`nDo you Accept? (Y)es/(N)o"
If($TOS -In 'n','no'){
Exit
} ElseIf($TOS -In 'y','yes') {
$Script:AcceptToS = 'Accepted-Script' ;$TOS = 'Out' ;StartOrGui
} ElseIf($TOS -eq 'l') {
$CopyR = $True ;ShowCopyright
} Else {
$Invalid = 1
}
} Return
}
Function LoadSettingFile([String]$Filename) {
If($Filename) {
(Import-Csv -LiteralPath $Filename -Delimiter ';').ForEach{ Set-Variable $_.Name $_.Value -Scope Script }
#[System.Collections.ArrayList]$Script:APPS_AppsUnhide = $AppsUnhide.Split(',')
#[System.Collections.ArrayList]$Script:APPS_AppsHide = $AppsHide.Split(',')
#[System.Collections.ArrayList]$Script:APPS_AppsUninstall = $AppsUninstall.Split(',')
SetAppxVar
}
}
Function SaveSettingFiles([String]$Filename) {
If($Filename) {
#ForEach($temp In $APPS_AppsUnhide){$Script:AppsUnhide += $temp + ','}
#ForEach($temp In $APPS_AppsHide){$Script:AppsHide += $temp + ','}
#ForEach($temp In $APPS_Uninstall){$Script:AppsUninstall += $temp + ','}
If(Test-Path -LiteralPath $Filename -PathType Leaf) {
If($ShowConf -eq 1){ $Conf = ConfirmMenu 2 } Else{ $Conf = $True }
If($Conf){ cmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';' }
} Else {
cmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';'
}
}
}
##########
# Multi Use Functions -End
##########
# GUI -Start
##########
Function SetCombo([String]$Name,[String]$Item) {
$Items = $Item.Split(',')
$combo = $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)
[Void] $combo.Items.Add('Skip')
ForEach($CmbItm In $Items){ [void] $combo.Items.Add($CmbItm) }
SelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly)
}
Function SetComboM([String]$Name,[String]$Item) {
$Items = $Item.Split(',')
$combo = $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)
[Void] $combo.Items.Add('Skip')
ForEach($CmbItm In $Items){ [Void] $combo.Items.Add($CmbItm) }
If($Var -NotLike 'APP_*'){ SelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly) }
}
Function SelectComboBox([Array]$List) {
ForEach($Var In $List) {
If($Var -NotLike 'APP_*'){ SelectComboBoxGen $Var $(Get-Variable -Name $Var -ValueOnly) }
}
}
Function SelectComboBoxGen([String]$Name,[Int]$Numb){ $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly).SelectedIndex = $Numb }
Function RestorePointCBCheck {
$WPF_CreateRestorePoint_CB.IsChecked,$WPF_RestorePointName_Txt = If($CreateRestorePoint -eq 1){ $True,$True } Else{ $False,$False }
}
Function ConfigGUIitms {
$WPF_CreateRestorePoint_CB.IsChecked = If($CreateRestorePoint -eq 1){ $True } Else{ $False }
$WPF_VersionCheck_CB.IsChecked = If($VersionCheck -eq 1){ $True } Else{ $False }
$WPF_InternetCheck_CB.IsChecked = If($InternetCheck -eq 1){ $True } Else{ $False }
$WPF_ShowSkipped_CB.IsChecked = If($ShowSkipped -eq 1){$True } Else{ $False }
$WPF_Restart_CB.IsChecked = If($Restart -eq 1){ $True } Else{ $False }
$WPF_RestorePointName_Txt.Text = $RestorePointName
RestorePointCBCheck
}
Function OpenSaveDiaglog([Int]$SorO) {
$SOFileDialog = If($SorO -eq 0){ New-Object System.Windows.Forms.OpenFileDialog } Else{ New-Object System.Windows.Forms.SaveFileDialog }
$SOFileDialog.InitialDirectory = $FileBase
$SOFileDialog.Filter = "CSV (*.csv)| *.csv"
$SOFileDialog.ShowDialog() | Out-Null
If($SorO -eq 0) {
LoadSettingFile $SOFileDialog.Filename
ConfigGUIitms
SelectComboBox $VarList
SetAppxVar
} Else {
GuiItmToVariable
SaveSettingFiles $SOFileDialog.Filename
}
}
Function GuiStart {
Clear-Host
DisplayOut 'Preparing GUI, Please wait...' -C 15
[xml]$XAML = @"
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="Win10_Script"
Title="Windows 10 Settings/Tweaks Script By: Madbomb122 (v.$Script_Version -$Script_Date" Height="420" Width="660" BorderBrush="Black" Background="White">
<Window.Resources>
<Style x:Key="SeparatorStyle1" TargetType="{x:Type Separator}">
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Margin" Value="0,0,0,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Separator}">
<Border Height="24" SnapsToDevicePixels="True" Background="#FF4D4D4D" BorderBrush="#FF4D4D4D" BorderThickness="0,0,0,1"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ToolTip}"><Setter Property="Background" Value="#FFFFFFBF"/></Style>
</Window.Resources>
<Window.Effect><DropShadowEffect/></Window.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
<RowDefinition Height="24"/>
</Grid.RowDefinitions>
<Menu Grid.Row="0" VerticalAlignment="Top">
<MenuItem Header="Help">
<MenuItem Name="FeedbackButton" Header="Feedback/Bug Report"/>
<MenuItem Name="FAQButton" Header="FAQ"/>
<MenuItem Name="AboutButton" Header="About"/>
<MenuItem Name="CopyrightButton" Header="Copyright"/>
<MenuItem Name="ContactButton" Header="Contact Me"/>
</MenuItem>
<MenuItem Name="DonateButton" Background="#FFFFAD2F" FontWeight="Bold" Header="Donate to Me"/>
<MenuItem Name="Madbomb122WSButton" Background="#FFFFDF4F" FontWeight="Bold" Header="Madbomb122's GitHub"/>
</Menu>
<TabControl Name="TabControl" Grid.Row="1" BorderBrush="Gainsboro" TabStripPlacement="Left">
<TabControl.Resources>
<Style TargetType="TabItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabItem">
<Border Name="Border" Margin="2,2" BorderBrush="Gainsboro" BorderThickness="1,1,1,0" CornerRadius="4,4,0,0">
<ContentPresenter x:Name="ContentSite" HorizontalAlignment="Center" Margin="5,2" VerticalAlignment="Center" ContentSource="Header"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True"><Setter TargetName="Border" Property="Background" Value="LightSkyBlue" /></Trigger>
<Trigger Property="IsSelected" Value="False"><Setter TargetName="Border" Property="Background" Value="GhostWhite" /></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TabControl.Resources>
<TabItem Name="Options_Tab" Header="Script Options">
<Grid Background="#FFE5E5E5">
<Grid.RowDefinitions>
<RowDefinition Height="6*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<GroupBox Header="Options" Grid.Row="0" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2.1*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<CheckBox Name="CreateRestorePoint_CB" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Content="Create Restore Point:"/>
<TextBox Name="RestorePointName_Txt" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Text="Win10 Initial Setup Script" TextWrapping="Wrap"/>
<CheckBox Name="ShowSkipped_CB" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Content="Show Skipped Items"/>
<CheckBox Name="Restart_CB" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Content="Restart When Done (Restart is Recommended)"/>
<CheckBox Name="VersionCheck_CB" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Content="Check for Update (If found, will run with current settings)"/>
<CheckBox Name="InternetCheck_CB" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Center" Content="Skip Internet Check"/>
</Grid>
</GroupBox>
<GroupBox Header="Backup / Restore / Reset" Grid.Row="1" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Name="Save_Setting_Button" Content="Save Settings" Grid.Column="0" Grid.Row="0"/>
<Button Name="Load_Setting_Button" Content="Load Settings" Grid.Column="1" Grid.Row="0"/>
<Button Name="WinDefault_Button" Content="Windows Default*" Grid.Column="2" Grid.Row="0"/>
<Button Name="ResetDefault_Button" Content="Reset All Items" Grid.Column="3" Grid.Row="0"/>
<TextBlock Text="Windows Default * / Does not modify Windows Apps or OneDrive Installation" Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="1" HorizontalAlignment="Left" FontStyle="Italic" TextWrapping="Wrap"/>
</Grid>
</GroupBox>
<GroupBox Header="Version" Grid.Row="2" Margin="2">
<Grid>
<TextBlock Name="Script_Ver_Txt" Text="v.$Script_Version ($Script_Date) -$Release_Type" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top"/>
</Grid>
</GroupBox>
</Grid>
</TabItem>
<TabItem Name="Privacy_tab" Header="Privacy">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="18*"/>
<ColumnDefinition Width="20*"/>
</Grid.ColumnDefinitions>
<Label Content="Telemetry:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Telemetry_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Wi-Fi Sense:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="WiFiSense_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="SmartScreen Filter:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="SmartScreen_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Location Tracking:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="LocationTracking_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Feedback:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Feedback_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Advertising ID:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AdvertisingID_Combo" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="21*"/>
<ColumnDefinition Width="20*"/>
</Grid.ColumnDefinitions>
<Label Content="Cortana:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Cortana_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Cortana Search:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="CortanaSearch_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Error Reporting:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ErrorReporting_Combo" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="AutoLogger:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AutoLoggerFile_Combo" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Diagnostics Tracking:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="DiagTrack_Combo" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="WAP Push:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="WAPPush_Combo" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="App Auto Download:" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AppAutoDownload_Combo" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</Grid>
</TabItem>
<TabItem Name="SrvTweak_Tab" Header="Service Tweaks">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="7*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Label Content="UAC Level:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="UAC_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Sharing mapped drives:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="SharingMappedDrives_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Administrative Shares:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AdminShares_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Firewall:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Firewall_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="7*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Label Content="Windows Defender:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="WinDefender_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="HomeGroups:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="HomeGroups_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Remote Assistance:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="RemoteAssistance_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Remote Desktop w/o Network Authentication:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="RemoteDesktop_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</Grid>
</TabItem>
<TabItem Name="Context_Tab" Header="Context Menu, 
Start Menu">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<GroupBox Header="Context Menu" Grid.Column="0" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="Cast to Device:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="CastToDevice_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Previous Versions:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="PreviousVersions_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Include in Library:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="IncludeinLibrary_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Pin To Start:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="PinToStart_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Pin To Quick Access:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="PinToQuickAccess_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Share With/Share:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ShareWith_Combo" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Send To:" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="SendTo_Combo" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</GroupBox>
<GroupBox Header="Start Menu" Grid.Column="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="Bing Search:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="StartMenuWebSearch_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Start Suggestions:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="StartSuggestions_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Most Used Apps:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="MostUsedAppStartMenu_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Recent Items/Frequent Places:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="RecentItemsFrequent_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Unpin All Items:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="UnpinItems_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</GroupBox>
</Grid>
</TabItem>
<TabItem Name="TaskBar_Tab" Header="Task Bar">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Content="Battery UI Bar:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="BatteryUIBar_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Clock UI Bar:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ClockUIBar_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Volume Control Bar:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="VolumeControlBar_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Taskbar Search box:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskbarSearchBox_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Task View button:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskViewButton_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Taskbar Icon Size:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskbarIconSize_Combo" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Taskbar Item Grouping:" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskbarGrouping_Combo" Grid.Column="3" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Tray Icons:" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TrayIcons_Combo" Grid.Column="3" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Seconds In Clock:" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="SecondsInClock_Combo" Grid.Column="3" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Last Active Click:" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="LastActiveClick_Combo" Grid.Column="3" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Taskbar on Multi Display:" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskBarOnMultiDisplay_Combo" Grid.Column="3" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Taskbar Button on Multi Display:" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskbarButtOnDisplay_Combo" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</TabItem>
<TabItem Name="Explorer_Tab" Header="Explorer">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Name="Timeline_Row" Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="Recent Files in Quick Access:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="RecentFileQikAcc_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Frequent folders in Quick_access:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="FrequentFoldersQikAcc_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Window Content while Dragging:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="WinContentWhileDrag_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Search Store for Unkn. Extensions:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="StoreOpenWith_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Long File Path:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="LongFilePath_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Default Explorer View:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ExplorerOpenLoc_Combo" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Powershell to Cmd:" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="WinXPowerShell_Combo" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="App Hibernation File (Swapfile.sys):" Grid.Column="0" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AppHibernationFile_Combo" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Process ID on Title Bar:" Grid.Column="0" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="PidInTitleBar_Combo" Grid.Column="1" Grid.Row="8" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Accessability Key Prompt:" Grid.Column="0" Grid.Row="9" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AccessKeyPrmpt_Combo" Grid.Column="1" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Window Timeline:" Grid.Column="0" Grid.Row="10" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Timeline_Combo" Grid.Column="1" Grid.Row="10" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Name="ReopenAppsOnBoot_Row" Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Label Content="Aero Snap:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AeroSnap_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Aero Shake:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="AeroShake_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Known Extensions:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="KnownExtensions_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Hidden Files:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="HiddenFiles_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="System Files:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="SystemFiles_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Autoplay:" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Autoplay_Combo" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Autorun:" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="Autorun_Combo" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Task Manager Details:" Grid.Column="0" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="TaskManagerDetails_Combo" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="F1 Help Key:" Grid.Column="0" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="F1HelpKey_Combo" Grid.Column="1" Grid.Row="8" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Reopen Apps On Boot:" Grid.Column="0" Grid.Row="9" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ReopenAppsOnBoot_Combo" Grid.Column="1" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</Grid>
</TabItem>
<TabItem Name="Desktop_Tab" Header="Desktop, This PC">
<Grid Background="#FFE5E5E5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<GroupBox Header="Desktop" Grid.Column="0" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Content="This PC Icon:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ThisPCOnDesktop_Combo" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Network Icon:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="NetworkOnDesktop_Combo" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Recycle Bin Icon:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="RecycleBinOnDesktop_Combo" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Users File Icon:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="UsersFileOnDesktop_Combo" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label Content="Control Panel Icon:" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<ComboBox Name="ControlPanelOnDesktop_Combo" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Grid>
</GroupBox>
<GroupBox Header="This PC" Grid.Column="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Name="ThreeDobjectsIconInThisPC_Row" Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>