bigp

bigp / Windows 11 setup script

Last active 5 months ago

Like 0

Sets up a clean install of windows 11

Revision a6572bd6f07d2f2ea668546c5114f1c7eebb5fa8

setup.ps1 Raw
1# Uninstall default crap
2Get-AppxPackage *3dbuilder* | Remove-AppxPackage
3Get-AppxPackage *windowsalarms* | Remove-AppxPackage
4Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
5Get-AppxPackage *officehub* | Remove-AppxPackage
6Get-AppxPackage *skypeapp* | Remove-AppxPackage
7Get-AppxPackage *getstarted* | Remove-AppxPackage
8Get-AppxPackage *zunemusic* | Remove-AppxPackage
9Get-AppxPackage *windowsmaps* | Remove-AppxPackage
10Get-AppxPackage *solitairecollection* | Remove-AppxPackage
11Get-AppxPackage *bingfinance* | Remove-AppxPackage
12Get-AppxPackage *zunevideo* | Remove-AppxPackage
13Get-AppxPackage *bingnews* | Remove-AppxPackage
14Get-AppxPackage *onenote* | Remove-AppxPackage
15Get-AppxPackage *people* | Remove-AppxPackage
16Get-AppxPackage *bingsports* | Remove-AppxPackage
17Get-AppxPackage *soundrecorder* | Remove-AppxPackage
18Get-AppxPackage *bingweather* | Remove-AppxPackage
19Get-AppxPackage *teams* | Remove-AppxPackage
20Get-AppxPackage *copilot* | Remove-AppxPackage
21Get-AppxPackage *clipchamp* | Remove-AppxPackage
22
23# Make the taskbar normal again
24reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarAl /t REG_DWORD /d 0 # Align taskbar to left
25reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarDa /t REG_DWORD /d 0 # Disable widget
26reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowCortanaButton /t REG_DWORD /d 0 # Disable Cortana button
27reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowCopilotButton /t REG_DWORD /d 0 # Disable Copilot button
28reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowTaskViewButton /t REG_DWORD /d 0 # Disable task view button
29reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v MMTaskbarEnabled /t REG_DWORD /d 0 # Disable multi-monitor taskbar
30reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarGlomLevel /t REG_DWORD /d 2 # Show window names
31reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search /f /v SearchboxTaskbarMode /t REG_DWORD /d 0 # Disable search button
32
33# Make explorer usable
34reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v DontPrettyPath /t REG_DWORD /d 1
35reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v HideFileExt /t REG_DWORD /d 0
36reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowSuperHidden /t REG_DWORD /d 1
37reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer /f /v DisableSearchBoxSuggestions /t REG_DWORD /d 1
38reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f /ve
39reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize /f /v StartupDelayInMSec /t REG_DWORD /d 1
40reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize /f /v WaitForIdleState /t REG_DWORD /d 0
41
42# Dark mode
43reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /f /v AppsUseLightTheme /t REG_DWORD /d 1
44reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /f /v SystemUsesLightTheme /t REG_DWORD /d 1
45
46# General
47reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /f /v VerboseStatus /t REG_DWORD /d 1
48reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v DragHeight /t REG_SZ /d 30
49reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v DragWidth /t REG_SZ /d 30
50reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v MenuShowDelay /t REG_SZ /d 100
51reg add "HKEY_CURRENT_USER\Control Panel\International" /f /v sShortTime /t REG_SZ /d "hh:mm tt"
52
53# Disable the post-update Enable Edge/Onedrive prompts
54reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v SubscribedContent-310093Enabled /t REG_DWORD /d 0
55reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v SubscribedContent-338389Enabled /t REG_DWORD /d 0
56reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /f /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0
57reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0
58
59# Disable the advertisements on the lockscreen
60reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\S-1-5-21-1155494831-622799966-3648362856-1003" /f /v RotatingLockScreenEnabled /t REG_DWORD /d 0
61reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v RotatingLockScreenOverlayEnabled /t REG_DWORD /d 0
62reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v RotatingLockScreenEnabled /t REG_DWORD /d 0
63reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /f /v SubscribedContent-338387Enabled /t REG_DWORD /d 0
64
65
66# Make windows better
67winget install -e --id StartIsBack.StartAllBack
68winget install -e --id WhatPulse.WhatPulse
69winget install -e --id Microsoft.PowerToys
70winget install -e --id voidtools.Everything
71winget install -e --id ShareX.ShareX
72winget install -e --id Espanso.Espanso
73winget install -e --id MartiCliment.UniGetUI
74winget install -e --id gerardog.gsudo
75winget install -e --id emoacht.Monitorian
76winget install 9nv2l4xvmcxm # Photos Legacy
77
78# Applications
79winget install -e --id Valve.Steam
80winget install -e --id Mojang.MinecraftLauncher
81winget install -e --id Overwolf.CurseForge
82winget install -e --id Spotify.Spotify
83winget install -e --id Google.Chrome
84winget install -e --id AgileBits.1Password
85winget install -e --id VideoLAN.VLC
86winget install -e --id TeamSpeakSystems.TeamSpeakClient
87winget install -e --id dotPDNLLC.paintdotnet
88winget install -e --id RARLab.WinRAR
89winget install -e --id Google.Drive
90winget install -e --id AntibodySoftware.WizTree
91winget install -e --id RaspberryPiFoundation.RaspberryPiImager
92winget install -e --id Zoom.Zoom
93winget install -e --id OBSProject.OBSStudio
94winget install -e --id Inkscape.Inkscape
95winget install -e --id VB-Audio.Voicemeeter.Banana
96winget install -e --id Elgato.StreamDeck
97
98# Chat
99winget install -e --id SlackTechnologies.Slack
100winget install -e --id Discord.Discord.Canary
101
102# Driver
103winget install -e --id Logitech.GHUB
104winget install -e --id Nvidia.GeForceExperience
105
106# Interpreters
107winget install -e --id OpenJS.NodeJS
108winget install -e --id Python.Python.3.9
109winget install -e --id Oracle.JavaRuntimeEnvironment
110winget install -e --id GoLang.Go
111
112# Programming
113winget install -e --id Git.Git
114winget install -e --id Postman.Postman
115winget install -e --id SublimeHQ.SublimeText.4
116winget install -e --id Notepad++.Notepad++
117winget install -e --id JetBrains.GoLand
118winget install -e --id JetBrains.Toolbox
119winget install -e --id Hashicorp.Terraform
120winget install -e --id ZeroTier.ZeroTierOne
121winget install -e --id xpipe-io.xpipe
122winget install -e --id Postman.Postman
123winget install -e --id PuTTY.PuTTY
124
125# Sandbox
126Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -Online
127Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
128
129# WSL
130wsl --install
131winget install -e --id Canonical.Ubuntu.2204
132winget install -e --id Docker.DockerDesktop
133