bigp

bigp / Windows 11 setup script

Last active 5 months ago

Like 0

Sets up a clean install of windows 11

Revision fd236a42544911615e1da87a94a5fd87b053eff4

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
21
22# Make the taskbar normal again
23reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarAl /t REG_DWORD /d 0 # Align taskbar to left
24reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarDa /t REG_DWORD /d 0 # Disable widget
25reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowCortanaButton /t REG_DWORD /d 0 # Disable Cortana button
26reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowCopilotButton /t REG_DWORD /d 0 # Disable Copilot button
27reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowTaskViewButton /t REG_DWORD /d 0 # Disable task view button
28reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v MMTaskbarEnabled /t REG_DWORD /d 0 # Disable multi-monitor taskbar
29reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarGlomLevel /t REG_DWORD /d 2 # Show window names
30reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search /f /v SearchboxTaskbarMode /t REG_DWORD /d 0 # Disable search button
31
32# Make explorer usable
33reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v DontPrettyPath /t REG_DWORD /d 1
34reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v HideFileExt /t REG_DWORD /d 0
35reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v ShowSuperHidden /t REG_DWORD /d 1
36reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer /f /v DisableSearchBoxSuggestions /t REG_DWORD /d 1
37reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f /ve
38reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize /f /v StartupDelayInMSec /t REG_DWORD /d 1
39reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize /f /v WaitForIdleState /t REG_DWORD /d 0
40
41# Dark mode
42reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /f /v AppsUseLightTheme /t REG_DWORD /d 1
43reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /f /v SystemUsesLightTheme /t REG_DWORD /d 1
44
45# General
46reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /f /v VerboseStatus /t REG_DWORD /d 1
47reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v DragHeight /t REG_SZ /d 30
48reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v DragWidth /t REG_SZ /d 30
49reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v MenuShowDelay /t REG_SZ /d 100
50reg add "HKEY_CURRENT_USER\Control Panel\International" /f /v sShortTime /t REG_SZ /d "hh:mm tt"
51
52# Make windows better
53winget install -e --id StartIsBack.StartAllBack
54winget install -e --id WhatPulse.WhatPulse
55winget install -e --id Microsoft.PowerToys
56winget install -e --id voidtools.Everything
57winget install -e --id ShareX.ShareX
58winget install -e --id Espanso.Espanso
59winget install -e --id MartiCliment.UniGetUI
60winget install -e --id gerardog.gsudo
61winget install -e --id emoacht.Monitorian
62
63# Applications
64winget install -e --id Valve.Steam
65winget install -e --id Mojang.MinecraftLauncher
66winget install -e --id Overwolf.CurseForge
67winget install -e --id Spotify.Spotify
68winget install -e --id Google.Chrome
69winget install -e --id AgileBits.1Password
70winget install -e --id VideoLAN.VLC
71winget install -e --id TeamSpeakSystems.TeamSpeakClient
72winget install -e --id dotPDNLLC.paintdotnet
73winget install -e --id RARLab.WinRAR
74winget install -e --id Google.Drive
75winget install -e --id AntibodySoftware.WizTree
76winget install -e --id RaspberryPiFoundation.RaspberryPiImager
77winget install -e --id Zoom.Zoom
78winget install -e --id OBSProject.OBSStudio
79winget install -e --id Inkscape.Inkscape
80winget install -e --id VB-Audio.Voicemeeter.Banana
81winget install -e --id Elgato.StreamDeck
82
83# Chat
84winget install -e --id SlackTechnologies.Slack
85winget install -e --id Discord.Discord.Canary
86
87# Driver
88winget install -e --id Logitech.GHUB
89winget install -e --id Nvidia.GeForceExperience
90
91# Interpreters
92winget install -e --id OpenJS.NodeJS
93winget install -e --id Python.Python.3.9
94winget install -e --id Oracle.JavaRuntimeEnvironment
95winget install -e --id GoLang.Go
96
97# Programming
98winget install -e --id Git.Git
99winget install -e --id Postman.Postman
100winget install -e --id SublimeHQ.SublimeText.4
101winget install -e --id Notepad++.Notepad++
102winget install -e --id JetBrains.GoLand
103winget install -e --id JetBrains.Toolbox
104winget install -e --id Hashicorp.Terraform
105winget install -e --id ZeroTier.ZeroTierOne
106winget install -e --id xpipe-io.xpipe
107winget install -e --id Postman.Postman
108winget install -e --id PuTTY.PuTTY
109
110# Sandbox
111Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -Online
112Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
113
114# WSL
115wsl --install
116winget install -e --id Canonical.Ubuntu.2204
117winget install -e --id Docker.DockerDesktop
118