bigp

bigp / Windows 11 setup script

Last active 5 months ago

Like 0

Sets up a clean install of windows 11

Revision 387dc69c8b4307c87d6a237074ca83295d200c3d

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