This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
main.ps1
1389 lines (1189 loc) · 41.1 KB
/
main.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
# Self-elevate the script if required
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
if (-not $myWindowsPrincipal.IsInRole($adminRole))
{
# We are not running "as Administrator" - so relaunch as administrator
# Create a new process object that starts PowerShell
$newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
# Specify the current script path and name as a parameter
$newProcess.Arguments = $myInvocation.MyCommand.Definition;
# Indicate that the process should be elevated
$newProcess.Verb = "runas";
# Start the new process
[System.Diagnostics.Process]::Start($newProcess) | Out-Null
# Exit from the current, unelevated, process
exit
}
Set-Location $PSScriptRoot
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
Get-ChildItem -Recurse $PSScriptRoot\*.ps*1 | Unblock-File
Import-Module .\library\Write-Menu.psm1 -DisableNameChecking
Import-Module .\library\WinCore.psm1 -DisableNameChecking
Clear-Host
Import-Module .\library\PrivacyFunctions.psm1 -DisableNameChecking
Import-Module .\library\Tweaks.psm1 -DisableNameChecking
Import-Module .\library\GeneralFunctions.psm1 -DisableNameChecking
Import-Module .\library\DebloatFunctions.psm1 -DisableNameChecking
Import-Module .\library\UndoFunctions.psm1 -DisableNameChecking
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Write-Host "It is recommended that you create a system restore point."
$reply = Read-Host -Prompt "Make One Now? [y/n]"
if ( $reply -match "[yY]" ) {
Clear-Host
Enable-ComputerRestore -Drive "$env:SystemDrive"
Checkpoint-Computer -Description "BeforeWindowsToolbox" -RestorePointType "MODIFY_SETTINGS"
Read-Host "Press enter to continue"
} else {
Enable-ComputerRestore -Drive "$env:SystemDrive"
}
Clear-Host
if ($build -lt 10.0.10240) {
Read-Host "Sorry, your Windows version is not supported, and never will be :( . Press Enter to exit"
Exit
} elseif ($build -le 10.0.17134) {
Write-Warning "Your Windows version is too old to run Winget. Using Chocolatey"
$global:pkgmgr = "choco"
Clear-Host
} else {
$global:pkgmgr = "winget"
}
$conflocation = "$env:APPDATA\WindowsToolbox\"
if (!(Test-Path -Path $conflocation)) {
$JSONData = @{
pkgmgr = "$global:pkgmgr"
}
if ( -not $build -eq "10.0.17134" ) {
Write-Host "It has been detected that this is your first time using Windows Toolbox, please choose a package manager."
$reply = Read-Host -Prompt "[W]inget Or [C]hocolatey (winget is recomended)"
if ( $reply -match "[wW]" ) { $global:pkgmgr = "winget" } elseif ( $reply -match "[cC]" ) { $global:pkgmgr = "choco" }
Clear-Host
}
New-Item -ItemType directory -Path $conflocation | Out-Null
New-Item -Path $conflocation -Name "config.json" -ItemType "file" | Out-Null
$JSONData | ConvertTo-Json | Add-Content -Path "$conflocation\config.json" | Out-Null
} else {
$JSONData = Get-Content -Path "$conflocation\config.json" -Raw | ConvertFrom-Json
$global:pkgmgr = $JSONData.pkgmgr
}
if ($global:pkgmgr -eq "choco") { $global:notpkgmgr = "winget" } else { $global:notpkgmgr = "choco" }
if ($global:pkgmgr -eq "choco") {
InstallChoco
Clear-Host
} else {
try {
# Check if winget is already installed
$er = (invoke-expression "winget -v") 2>&1
if ($lastexitcode) { throw $er }
Write-Host "winget is already installed."
Read-Host "Press enter to continue"
Clear-Host
}
catch {
# If winget is not installed. Install it from the Github release
Write-Host "winget is not installed, installing it right now."
$download = "https://github.com/microsoft/winget-cli/releases/download/v1.0.11692/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Write-Host "Dowloading the latest release..."
Invoke-WebRequest -Uri $download -OutFile $PSScriptRoot\winget-latest.appxbundle
Write-Host "Installing the package..."
Add-AppxPackage -Path $PSScriptRoot\winget-latest.appxbundle
Read-Host "Press enter to continue"
Clear-Host
}
}
setup
Clear-Host
Info
$objects = @{
'1) Debloat' = "@(
'Disable Windows Defender (NOT RECOMMENDED)',
'Remove Default UWP apps',
'Remove OneDrive',
'Optimize Windows Updates',
'Disable services',
'Disable Cortana',
'Remove Internet Explorer',
'Remove Xbox bloat'
)"
'2) Privacy Settings' = "@(
'Disable Telemetry',
'Privacy Fixes (WIP)',
'Disable App Suggestions',
'Disable Tailored Experiences',
'Disable Advertising ID',
'Disable Activity History',
'Disable Location Services'
)"
'3) Tweaks' = @{
'System Tweaks' = "@(
'Lower RAM usage',
'Enable photo viewer',
'Enable Ultimate Performance Power Plan',
'Disable Prefetch prelaunch',
'Disable Edge prelaunch',
'Disable Superfetch',
'Use UTC system clock',
'Disable ShellExperienceHost',
'Disable SearchUI',
'Enable GodMode',
'Disable page file encryption (Improves the lifespan of SSDs)',
'Disable Web Search (Bing)'
)"
'UI Tweaks' = @{
'Appearance' = "@(
'Enable dark mode',
'Enable Windows 7-style volume flyout',
'Enable Windows 7-style battery flyout',
'Hide People icon on the Taskbar',
'Restore classic context menu (Windows 11 only)'
)"
'Explorer' = "@(
'Remove user folders under This PC',
'Show build number on desktop',
'Show full directory path in Explorer title bar',
'Change default explorer view to This PC',
'Show hidden files',
'Show file extensions'
)"
'Behavior' = "@(
'Disable Aero Shake',
'Switch Windows With a Single Click on the Taskbar',
'Disable Action Center',
'Disable Accessibility Keys',
'Set Win+X menu to Command Prompt',
'Enable verbose startup / shutdown messages',
'Disable Xbox Game DVR and Game Bar'
)"
}
'Boot Configuration Data (BCD)' = "@(
'Remove entry',
'Set timeout',
'Set default',
'Export BCD configuration',
'Import BCD configuration'
)"
}
'4) Install Apps' = @{
'Browsers' = "@(
'Firefox',
'Google Chrome',
'Edge Chromium',
'Vivaldi',
'Tor Broswer'
)"
'Dev Tools' = @{
'Text editors | IDEs' = "@(
'Visual Studio Code',
'Atom',
'Notepad++',
'Sublime Text',
'Vim'
)"
'Development' = "@(
'Github Desktop',
'Github CLI',
'Git',
'Heroku CLI',
'JRE 8',
'Python 3',
'Python 2',
'PowerShell',
'PuTTY',
'Node.JS',
'Docker',
'Windows Subsystem for Linux',
'Windows Terminal'
)"
}
'Communication' = "@(
'Discord',
'Slack',
'Zoom',
'Skype',
'Telegram',
'Zalo',
'Microsoft Teams',
'Teamspeak',
'Thunderbird'
)"
'Game Launchers' = "@(
'Steam',
'Epic Games Launcher',
'GOG Galaxy'
)"
'Streaming' = "@(
'OBS Studio',
'Streamlabs'
)"
'Multimedia' = @{
'Imaging' = "@(
'ShareX',
'Krita',
'GIMP',
'Inkscape'
)"
'Media Playing' = "@(
'iTunes',
'Spotify',
'VLC',
'Audacity',
'Kodi',
'Twitch'
)"
}
'Utilities' = @{
'Password managers' = "@(
'LastPass',
'Dashlane',
'Bitwarden',
'1Password'
)"
'Hypervisors / Emulators' = "@(
'VMware Workstation Pro',
'VMware Workstation Player',
'HyperV (Windows 10/11 Pro Only)',
'VirtualBox',
'DOSBox',
'QEMU'
)"
'Hardware info & Benchmarks' = "@(
'CPU-Z',
'GPU-Z',
'CrystalDiskMark',
'AIDA64 Extreme'
)"
'Customisation' = "@(
'Auto Dark Mode (Winget only)',
'WinDynamicDesktop',
'PowerToys',
'TaskbarX',
'StartIsBack',
'Winaero Tweaker (Chocolatey only)',
'ModernFlyouts'
)"
'Archiving' = "@(
'7-Zip',
'WinRAR',
'WinZip (Winget only)'
)"
'Remote' = "@(
'TeamViewer',
'Parsec',
'VNC Viewer',
'VNC Server'
)"
'Other' = "@(
'EasyBCD (Chocolatey only)',
'Evernote',
'Gpg4win',
'iMazing',
'Internet Download Manager',
'MS-DOS Mode for Windows 10 (Proof of Concept, made by Endermanch)',
'Authy Desktop',
'NTLite',
'WinSCP',
'FileZilla',
'osu!',
'osu!lazer (winget only)'
)"
}
}
'5) Undo (WIP)' = "@(
'(Re)Enable Telemetry',
'(Re)Enable Windows Defender',
'(Re)Install OneDrive',
'(Re)Install default UWP apps',
'(Re)Enable Location Services',
'(Re)Enable Activity History',
'(Re)Enable Superfetch',
'Hide build number on desktop',
'Disable old context menu (Windows 11 only)',
'Disable Windows 7-style volume flyout',
'Disable Windows 7-style battery flyout',
'Hide hidden files in Explorer',
'Hide file extensions in Explorer'
)"
'6) Options' = "@(
'1) Create restore point',
'2) Change package manager',
'3) Info',
'4) Restart Explorer',
'5) Restart',
'6) Exit'
)"
}
while ($true) {
$mainMenu = Write-Menu -Sort -Title $title -Entries $objects
switch ($mainMenu) {
#Debloat menu
"Disable Windows Defender (NOT RECOMMENDED)" {
DisableWindowsDefender
}
"Remove Default UWP apps" {
RemoveDefaultApps
}
"Remove OneDrive" {
RemoveOneDrive
}
"Optimize Windows Updates" {
OptimizeUpdates
}
"Disable services" {
DisableServices
}
"Disable Cortana" {
DisableCortana
}
"Remove Internet Explorer" {
RemoveIE
}
"Remove Xbox bloat" {
RemoveXboxBloat
}
# Privacy menu
"Disable Telemetry" {
DisableTelemetry
}
"Privacy Fixes (WIP)" {
PrivacyFixSettings
}
"Disable App Suggestions" {
DisableAppSuggestions
}
"Disable Tailored Experiences" {
DisableTailoredExperiences
}
"Disable Advertising ID" {
DisableAdvertisingID
}
"Disable Activity History" {
DisableActivityHistory
}
"Disable Location Services" {
DisableLocation
}
# Install Menu
# Browsers
"Firefox" {
if ($global:pkgmgr -eq "choco") {
choco install firefox
} elseif ($global:pkgmgr -eq "winget") {
winget install Mozilla.Firefox
}
}
"Google Chrome" {
if ($global:pkgmgr -eq "choco") {
choco install googlechrome
} elseif ($global:pkgmgr -eq "winget") {
winget install Google.Chrome
}
}
"Edge Chromium" {
if ($global:pkgmgr -eq "choco") {
choco install microsoft-edge
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.Edge
}
}
"Vivaldi" {
if ($global:pkgmgr -eq "choco") {
choco install vivaldi
} elseif ($global:pkgmgr -eq "winget") {
winget install VivaldiTechnologies.Vivaldi
}
}
"Tor Broswer" {
if ($global:pkgmgr -eq "choco") {
choco install tor-broswer
} elseif ($global:pkgmgr -eq "winget") {
winget install TorProject.TorBroswer
}
}
# Dev Tools
"Visual Studio Code" {
if ($global:pkgmgr -eq "choco") {
choco install vscode
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.VisualStudioCode
}
}
"Atom" {
if ($global:pkgmgr -eq "choco") {
choco install atom
} elseif ($global:pkgmgr -eq "winget") {
winget install GitHub.Atom
}
}
"Notepad++" {
if ($global:pkgmgr -eq "choco") {
choco install notepadplusplus
} elseif ($global:pkgmgr -eq "winget") {
winget install Notepad++.Notepad++
}
}
"Sublime Text" {
if ($global:pkgmgr -eq "choco") {
choco install sublimetext3.app
} elseif ($global:pkgmgr -eq "winget") {
winget install SublimeHQ.SublimeText
}
}
"Github Desktop" {
if ($global:pkgmgr -eq "choco") {
choco install github-desktop
} elseif ($global:pkgmgr -eq "winget") {
winget install GitHub.GitHubDesktop
}
}
"Github CLI" {
if ($global:pkgmgr -eq "choco") {
choco install gh
} elseif ($global:pkgmgr -eq "winget") {
winget install GitHub.cli
}
}
"Git" {
if ($global:pkgmgr -eq "choco") {
choco install git
} elseif ($global:pkgmgr -eq "winget") {
winget install Git.Git
}
}
"Heroku CLI" {
if($global:pkgmgr -eq "choco") {
choco install heroku-cli
} elseif($global:pkgmgr -eq "winget") {
winget install Heroku.HerokuCLI
}
}
"JRE 8" {
if ($global:pkgmgr -eq "choco") {
choco install jre8
} elseif ($global:pkgmgr -eq "winget") {
winget install Oracle.JavaRuntimeEnvironment
}
}
"Python 3" {
if ($global:pkgmgr -eq "choco") {
choco install python3
} elseif ($global:pkgmgr -eq "winget") {
winget install Python.Python.3
}
}
"Python 2" {
if ($global:pkgmgr -eq "choco") {
choco install python2
} elseif ($global:pkgmgr -eq "winget") {
winget install Python.Python.2
}
}
"PowerShell" {
if ($global:pkgmgr -eq "choco") {
choco install powershell-core
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.PowerShell
}
}
"PuTTY" {
if ($global:pkgmgr -eq "choco") {
choco install putty
} elseif ($global:pkgmgr -eq "winget") {
winget install PuTTY.PuTTY
}
}
"Node.JS" {
if ($global:pkgmgr -eq "choco") {
choco install nodejs
} elseif ($global:pkgmgr -eq "winget") {
winget install OpenJS.Nodejs
}
}
"Vim" {
if ($global:pkgmgr -eq "choco") {
choco install vim
} elseif ($global:pkgmgr -eq "winget") {
winget install vim.vim
}
}
"Docker" {
if ($global:pkgmgr -eq "choco") {
Write-Warning "Docker cannot be installed with Chocolatey"
} elseif ($global:pkgmgr -eq "winget") {
winget install Docker.DockerDesktop
}
}
"Windows Subsystem for Linux" {
InstallWSL
}
"Windows Terminal" {
if ($global:pkgmgr -eq "choco") {
choco install microsoft-windows-terminal
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.WindowsTerminal
}
}
"Hyper-V (Windows 10/11 Pro Only)" {
InstallHyperV
}
# Communication apps
"Discord" {
if ($global:pkgmgr -eq "choco") {
choco install discord
} elseif ($global:pkgmgr -eq "winget") {
winget install Discord.Discord
}
}
"Slack" {
if ($global:pkgmgr -eq "choco") {
choco install slack
} elseif ($global:pkgmgr -eq "winget") {
winget install SlackTechnologies.Slack
}
}
"Zoom" {
if ($global:pkgmgr -eq "choco") {
choco install zoom
} elseif ($global:pkgmgr -eq "winget") {
winget install Zoom.Zoom
}
}
"Skype" {
if ($global:pkgmgr -eq "choco") {
choco install skype
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.Skype
}
}
"Zalo" {
if ($global:pkgmgr -eq "choco") {
choco install zalopc
} elseif ($global:pkgmgr -eq "winget") {
winget install VNGCorp.Zalo
}
}
"Telegram" {
if ($global:pkgmgr -eq "choco") {
choco install telegram
} elseif ($global:pkgmgr -eq "winget") {
winget install Telegram.TelegramDesktop
}
}
"Microsoft Teams" {
if ($global:pkgmgr -eq "choco") {
choco install microsoft-teams
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.Teams
}
}
"Teamspeak" {
if ($global:pkgmgr -eq "choco") {
choco install teamspeak
} elseif ($global:pkgmgr -eq "winget") {
winget install TeamSpeakSystems.TeamSpeakClient
}
}
"Thunderbird" {
if ($global:pkgmgr -eq "choco") {
choco install thunderbird
} elseif ($global:pkgmgr -eq "winget") {
winget install Mozilla.Thunderbird
}
}
# Gaming Menu
"Steam" {
if ($global:pkgmgr -eq "choco") {
choco install steam-client
} elseif ($global:pkgmgr -eq "winget") {
winget install Valve.Steam
}
}
"OBS Studio" {
if ($global:pkgmgr -eq "choco") {
choco install obs-studio
} elseif ($global:pkgmgr -eq "winget") {
winget install OBSProject.OBSStudio
}
}
"Streamlabs" {
if ($global:pkgmgr -eq "choco") {
choco install streamlabs-obs
} elseif ($global:pkgmgr -eq "winget") {
winget install Streamlabs.StreamlabsOBS
}
}
"Epic Games Launcher" {
if ($global:pkgmgr -eq "choco") {
choco install epicgameslauncher
} elseif ($global:pkgmgr -eq "winget") {
winget install EpicGames.EpicGamesLauncher
}
}
"Twitch" {
if ($global:pkgmgr -eq "choco") {
choco install twitch
} elseif ($global:pkgmgr -eq "winget") {
winget install Twitch.Twitch
}
}
"GOG Galaxy" {
if ($global:pkgmgr -eq "choco") {
choco install goggalaxy
} elseif ($global:pkgmgr -eq "winget") {
winget install GOG.Galaxy
}
}
# Multimedia
"iTunes" {
if ($global:pkgmgr -eq "choco") {
choco install itunes
} elseif ($global:pkgmgr -eq "winget") {
winget install Apple.iTunes
}
}
"Spotify" {
if ($global:pkgmgr -eq "choco") {
choco install spotify
} elseif ($global:pkgmgr -eq "winget") {
winget install Spotify.Spotify
}
}
"VLC" {
if ($global:pkgmgr -eq "choco") {
choco install vlc
} elseif ($global:pkgmgr -eq "winget") {
winget install VideoLAN.VLC
}
}
"Kodi" {
if ($global:pkgmgr -eq "choco") {
choco install kodi
} elseif (global:pkgmgr -eq "winget") {
winget install XBMCFoundation.Kodi
}
}
"Audacity" {
if ($global:pkgmgr -eq "choco") {
choco install audacity
} elseif ($global:pkgmgr -eq "winget") {
winget install Audacity.Audacity
}
}
"ShareX" {
if ($global:pkgmgr -eq "choco") {
choco install sharex
} elseif ($global:pkgmgr -eq "winget") {
winget install ShareX.ShareX
}
}
"Krita" {
if ($global:pkgmgr -eq "choco") {
choco install krita
} elseif ($global:pkgmgr -eq "winget") {
winget install KDE.Krita
}
}
"GIMP" {
if ($global:pkgmgr -eq "choco") {
choco install gimp
} elseif ($global:pkgmgr -eq "winget") {
winget install GIMP.GIMP
}
}
"Inkscape" {
if ($global:pkgmgr -eq "choco") {
choco install inkscape
} elseif ($global:pkgmgr -eq "winget") {
winget install Inkscape.Inkscape
}
}
#Remote
"TeamViewer" {
if ($global:pkgmgr -eq "choco") {
choco install teamviewer
} elseif ($global:pkgmgr -eq "winget") {
winget install TeamViewer.TeamViewer
}
}
"Parsec" {
if ($global:pkgmgr -eq "choco") {
choco install parsec
} elseif ($global:pkgmgr -eq "winget") {
winget install ParsecCloudInc.Parsec
}
}
"VNC Viewer" {
if ($global:pkgmgr -eq "choco") {
choco install vnc-viewer
} elseif ($global:pkgmgr -eq "winget") {
winget install RealVNC.VNCViewer
}
}
"VNC Server" {
if ($global:pkgmgr -eq "choco") {
choco install vnc-connect
} elseif ($global:pkgmgr -eq "winget") {
winget install RealVNC.VNCServer
}
}
#Password managers
"LastPass" {
if ($global:pkgmgr -eq "choco") {
choco install lastpass
} elseif ($global:pkgmgr -eq "winget") {
winget install LogMeIn.LastPass
}
}
"Dashlane" {
if ($global:pkgmgr -eq "choco") {
choco install dashlane
} elseif ($global:pkgmgr -eq "winget") {
winget install Dashlane.Dashlane
}
}
"Bitwarden" {
if ($global:pkgmgr -eq "choco") {
choco install bitwarden
} elseif($global:pkgmgr -eq "winget") {
winget install Bitwarden.Bitwarden
}
}
"1Password" {
if ($global:pkgmgr -eq "choco") {
choco install 1password
} elseif($global:pkgmgr -eq "winget") {
winget install AgileBits.1Password
}
}
#Virtualization
'VMware Workstation Pro' {
if ($global:pkgmgr -eq "choco") {
choco install vmwareworkstation
} elseif ($global:pkgmgr -eq "winget") {
winget install VMware.WorkstationPro
}
}
'VMware Workstation Player' {
if ($global:pkgmgr -eq "choco") {
choco install vmware-workstation-player
} elseif ($global:pkgmgr -eq "winget") {
winget install VMware.WorkstationPlayer
}
}
'VirtualBox' {
if ($global:pkgmgr -eq "choco") {
choco install virtualbox
} elseif ($global:pkgmgr -eq "winget") {
winget install Oracle.VirtualBox
}
}
'DOSBox' {
if ($global:pkgmgr -eq "choco") {
choco install dosbox
} elseif ($global:pkgmgr -eq "winget") {
winget install DOSBox.DOSBox
}
}
"QEMU" {
if ($global:pkgmgr -eq "choco") {
choco install qemu
} elseif ($global:pkgmgr -eq "winget") {
winget install SoftwareFreedomConservancy.QEMU
}
}
#Hardware info & Benchmarks
"CPU-Z" {
if ($global:pkgmgr -eq "choco") {
choco install cpu-z
} elseif ($global:pkgmgr -eq "winget") {
winget install CPUID.CPU-Z
}
}
"GPU-Z" {
if ($global:pkgmgr -eq "choco") {
choco install gpu-z
} elseif ($global:pkgmgr -eq "winget") {
winget install TechPowerUp.GPU-Z
}
}
"Crystal Disk Mark" {
if ($global:pkgmgr -eq "choco") {
choco install crystaldiskmark
} elseif ($global:pkgmgr -eq "winget") {
winget install CrystalDewWorld.CrystalDiskMark
}
}
"AIDA64 Extreme" {
if ($global:pkgmgr -eq "choco") {
choco install aida64-extreme
} elseif ($global:pkgmgr -eq "winget") {
winget install FinalWire.AIDA64Extreme
}
}
#Other
"Auto Dark Mode (Winget only)" {
if ($global:pkgmgr -eq "winget") {
winget install Armin2208.WindowsAutoNightMode
} elseif ($global:pkgmgr -eq "choco") {
Write-Output "Auto Dark Mode cannot be installed with Chocolatey"
}
}
"WinDynamicDesktop" {
if ($global:pkgmgr -eq "choco") {
choco install windynamicdesktop
} elseif ($global:pkgmgr -eq "winget") {
winget install t1m0thyj.WinDynamicDesktop
}
}
"PowerToys" {
if ($global:pkgmgr -eq "choco") {
choco install powertoys
} elseif ($global:pkgmgr -eq "winget") {
winget install Microsoft.PowerToys
}
}
"TaskbarX" {
if ($global:pkgmgr -eq "choco") {
choco install taskbarx
} elseif ($global:pkgmgr -eq "winget") {
Write-Output "TaskbarX cannot be installed with winget"
}
}
"StartIsBack" {
if ($global:pkgmgr -eq "choco") {
choco install startisback
} elseif ($global:pkgmgr -eq "winget") {
winget install StartIsBack.StartIsBack
}
}
"ModernFlyouts" {
if ($global:pkgmgr -eq "choco") {
choco install modernflyouts
} elseif ($global:pkgmgr -eq "winget") {
winget install ModernFlyouts.ModernFlyouts
}
}
"Internet Download Manager" {
if ($global:pkgmgr -eq "choco") {