bigp

bigp / Windows 11 setup script

Last active 5 months ago

Like 0

Sets up a clean install of windows 11

Revision 409dcad56847bcb978fb71c3a8b2d7eee75f0c35

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# AI
67& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -AllOptions -InstallClassicApps photoviewer,mspaint,snippingtool,notepad,photoslegacy
68
69
70
71
72# Make windows better
73winget install -e --id StartIsBack.StartAllBack
74winget install -e --id WhatPulse.WhatPulse
75winget install -e --id Microsoft.PowerToys
76winget install -e --id voidtools.Everything
77winget install -e --id ShareX.ShareX
78winget install -e --id Espanso.Espanso
79winget install -e --id MartiCliment.UniGetUI
80winget install -e --id gerardog.gsudo
81winget install -e --id emoacht.Monitorian
82winget install 9nv2l4xvmcxm # Photos Legacy
83
84# Applications
85winget install -e --id Valve.Steam
86winget install -e --id Mojang.MinecraftLauncher
87winget install -e --id Overwolf.CurseForge
88winget install -e --id Spotify.Spotify
89winget install -e --id Google.Chrome
90winget install -e --id AgileBits.1Password
91winget install -e --id VideoLAN.VLC
92winget install -e --id TeamSpeakSystems.TeamSpeakClient
93winget install -e --id dotPDNLLC.paintdotnet
94winget install -e --id RARLab.WinRAR
95winget install -e --id Google.Drive
96winget install -e --id AntibodySoftware.WizTree
97winget install -e --id RaspberryPiFoundation.RaspberryPiImager
98winget install -e --id Zoom.Zoom
99winget install -e --id OBSProject.OBSStudio
100winget install -e --id Inkscape.Inkscape
101winget install -e --id VB-Audio.Voicemeeter.Banana
102winget install -e --id Elgato.StreamDeck
103
104# Chat
105winget install -e --id SlackTechnologies.Slack
106winget install -e --id Discord.Discord.Canary
107
108# Driver
109winget install -e --id Logitech.GHUB
110winget install -e --id Nvidia.GeForceExperience
111
112# Interpreters
113winget install -e --id OpenJS.NodeJS
114winget install -e --id Python.Python.3.9
115winget install -e --id Oracle.JavaRuntimeEnvironment
116winget install -e --id GoLang.Go
117
118# Programming
119winget install -e --id Git.Git
120winget install -e --id Postman.Postman
121winget install -e --id SublimeHQ.SublimeText.4
122winget install -e --id Notepad++.Notepad++
123winget install -e --id JetBrains.GoLand
124winget install -e --id JetBrains.Toolbox
125winget install -e --id Hashicorp.Terraform
126winget install -e --id ZeroTier.ZeroTierOne
127winget install -e --id xpipe-io.xpipe
128winget install -e --id Postman.Postman
129winget install -e --id PuTTY.PuTTY
130
131# Sandbox
132Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -Online
133Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
134
135# WSL
136wsl --install
137winget install -e --id Canonical.Ubuntu.2204
138winget install -e --id Docker.DockerDesktop
139