bigp

bigp / Windows 11 setup script

Last active 5 months ago

Like 0

Sets up a clean install of windows 11

Revision 16716135fdfcc55dc9e326ac2ca4361543387fc7

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# Make windows better
54winget install -e --id StartIsBack.StartAllBack
55winget install -e --id WhatPulse.WhatPulse
56winget install -e --id Microsoft.PowerToys
57winget install -e --id voidtools.Everything
58winget install -e --id ShareX.ShareX
59winget install -e --id Espanso.Espanso
60winget install -e --id MartiCliment.UniGetUI
61winget install -e --id gerardog.gsudo
62winget install -e --id emoacht.Monitorian
63winget install 9nv2l4xvmcxm # Photos Legacy
64
65# Applications
66winget install -e --id Valve.Steam
67winget install -e --id Mojang.MinecraftLauncher
68winget install -e --id Overwolf.CurseForge
69winget install -e --id Spotify.Spotify
70winget install -e --id Google.Chrome
71winget install -e --id AgileBits.1Password
72winget install -e --id VideoLAN.VLC
73winget install -e --id TeamSpeakSystems.TeamSpeakClient
74winget install -e --id dotPDNLLC.paintdotnet
75winget install -e --id RARLab.WinRAR
76winget install -e --id Google.Drive
77winget install -e --id AntibodySoftware.WizTree
78winget install -e --id RaspberryPiFoundation.RaspberryPiImager
79winget install -e --id Zoom.Zoom
80winget install -e --id OBSProject.OBSStudio
81winget install -e --id Inkscape.Inkscape
82winget install -e --id VB-Audio.Voicemeeter.Banana
83winget install -e --id Elgato.StreamDeck
84
85# Chat
86winget install -e --id SlackTechnologies.Slack
87winget install -e --id Discord.Discord.Canary
88
89# Driver
90winget install -e --id Logitech.GHUB
91winget install -e --id Nvidia.GeForceExperience
92
93# Interpreters
94winget install -e --id OpenJS.NodeJS
95winget install -e --id Python.Python.3.9
96winget install -e --id Oracle.JavaRuntimeEnvironment
97winget install -e --id GoLang.Go
98
99# Programming
100winget install -e --id Git.Git
101winget install -e --id Postman.Postman
102winget install -e --id SublimeHQ.SublimeText.4
103winget install -e --id Notepad++.Notepad++
104winget install -e --id JetBrains.GoLand
105winget install -e --id JetBrains.Toolbox
106winget install -e --id Hashicorp.Terraform
107winget install -e --id ZeroTier.ZeroTierOne
108winget install -e --id xpipe-io.xpipe
109winget install -e --id Postman.Postman
110winget install -e --id PuTTY.PuTTY
111
112# Sandbox
113Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -Online
114Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
115
116# WSL
117wsl --install
118winget install -e --id Canonical.Ubuntu.2204
119winget install -e --id Docker.DockerDesktop
120