Skip to content

Instantly share code, notes, and snippets.

@stogoh
Last active November 29, 2022 19:13
Show Gist options
  • Save stogoh/cf20810106fcca67bb0382c53eb76847 to your computer and use it in GitHub Desktop.
Save stogoh/cf20810106fcca67bb0382c53eb76847 to your computer and use it in GitHub Desktop.
Boxstarter Windows Setup
# Remove 3D Viewer
Write-Output "Removing 3D Viewer..."
Get-AppxPackage "*3DViewer*" | Remove-AppxPackage
# Camera
Write-Output "Removing Camera..."
Get-AppxPackage "Microsoft.WindowsCamera" | Remove-AppxPackage
# Feedback Hub
Write-Output "Removing Feedback Hub..."
Get-AppxPackage "Microsoft.WindowsFeedbackHub" | Remove-AppxPackage
# Groove Music
Write-Output "Removing Groove Music..."
Get-AppxPackage "Microsoft.ZuneMusic" | Remove-AppxPackage
# Mail and Calendar
Write-Output "Removing Mail and Calendar..."
Get-AppxPackage "microsoft.WindowsCommunicationsApps" | Remove-AppxPackage
# Microsoft Solitare Collection
Write-Output "Removing Microsoft Solitaire Collection..."
Get-AppxPackage "Microsoft.MicrosoftSolitaireCollection" | Remove-AppxPackage
# Mixed Reality Portal
Write-Output "Removing Mixed Reality Portal..."
Get-AppxPackage "Microsoft.MixedReality.Portal" | Remove-AppxPackage
# Office
Write-Output "Removing Office..."
Get-AppxPackage "Microsoft.MicrosoftOfficeHub" | Remove-AppxPackage
# OneNote
Write-Output "Removing OneNote..."
Get-AppxPackage "Microsoft.Office.OneNote" | Remove-AppxPackage
# Maps
Write-Output "Removing Maps..."
Get-AppxPackage "Microsoft.WindowsMaps" | Remove-AppxPackage
# Sykpe
Write-Output "Removing Skype..."
Get-AppxPackage "Microsoft.SkypeApp" | Remove-AppxPackage
# Voice Recorder
Write-Output "Removing Voice Recorder..."
Get-AppxPackage "Microsoft.WindowsSoundRecorder" | Remove-AppxPackage
# Xbox Game Overlay
Write-Output "Removing Xbox Game Overlay..."
Get-AppxPackage "Microsoft.XboxGameOverlay" | Remove-AppxPackage
# Xbox Speech To Text Overlay
Write-Output "Removing Xbox Speech To Text Overlay..."
Get-AppxPackage "Microsoft.XboxSpeechToTextOverlay" | Remove-AppxPackage
# Xbox TCUI
Write-Output "Removing Xbox TCUI..."
Get-AppxPackage "Microsoft.Xbox.TCUI" | Remove-AppxPackage
# Xbox Application
Write-Output "Removing Xbox Application..."
Get-AppxPackage "Microsoft.XboxApp" | Remove-AppxPackage
# Xbox Identity Provider
Write-Output "Removing Xbox Identity Provider..."
Get-AppxPackage "Microsoft.XboxIdentityProvider" | Remove-AppxPackage
# Xbox Gaming Overlay
Write-Output "Removing Xbox Gaming Overlay..."
Get-AppxPackage "Microsoft.XboxGamingOverlay" | Remove-AppxPackage
# Your Phone
Write-Output "Removing Your Phone..."
Get-AppxPackage "Microsoft.YourPhone" | Remove-AppxPackage
# Alarms & Clocks
Write-Output "Removing Alarms & Clocks..."
Get-AppxPackage "Microsoft.WindowsAlarms" | Remove-AppxPackage
# Paint 3D
Write-Output "Removing Paint 3D..."
Get-AppxPackage "Microsoft.MSPaint" | Remove-AppxPackage
# Tips
Write-Output "Removing Tips..."
Get-AppxPackage "Microsoft.GetStarted" | Remove-AppxPackage
# Weather
Write-Output "Removing Weather..."
Get-AppxPackage "Microsoft.BingWeather" | Remove-AppxPackage
# Cortana
Write-Output "Removing Cortana..."
Get-AppxPackage "Microsoft.549981C3F5F10" | Remove-AppxPackage
# Sticky Notes
Write-Output "Removing Sticky Notes..."
Get-AppxPackage "Microsoft.MicrosoftStickyNotes" | Remove-AppxPackage
# People
Write-Output "Removing People..."
Get-AppxPackage "Microsoft.People" | Remove-AppxPackage
# Movies & TV
Write-Output "Removing Movies & TV..."
Get-AppxPackage "Microsoft.ZuneVideo" | Remove-AppxPackage
# Get Help
Write-Output "Removing Get Help..."
Get-AppxPackage "Microsoft.GetHelp" | Remove-AppxPackage
# Microsoft Photos
# Write-Output "Removing Microsoft Photos..."
# Get-AppxPackage "Microsoft.Windows.Photos" | Remove-AppxPackage
# Snip & Sketch
# Write-Output "Removing Snip & Sketch..."
# Get-AppxPackage "Microsoft.ScreenSketch" | Remove-AppxPackage
# VP9 Video Extenstion
Write-Output "Removing VP9 Video Extenstion..."
Get-AppxPackage "Microsoft.VP9VideoExtensions" | Remove-AppxPackage
# HEIF Image Extenstion
# Write-Output "Removing HEIF Image Extenstion..."
# Get-AppxPackage "Microsoft.HEIFImageExtension" | Remove-AppxPackage
# Webp Image Extenstion
# Write-Output "Removing Webp Image Extenstion..."
# Get-AppxPackage "Microsoft.WebpImageExtension" | Remove-AppxPackage
# Web Media Extenstion
# Write-Output "Removing Web Media Extenstion..."
# Get-AppxPackage "Microsoft.WebMediaExtensions" | Remove-AppxPackage
# Spotify
# Write-Output "Removing Spotify Extension..."
# Get-AppxPackage "SpotifyAB.SpotifyMusic" | Remove-AppxPackage
# Disney+
Write-Output "Removing Disney+..."
Get-AppxPackage Disney.* | Remove-AppxPackage
# Install HEVC Video Extenstions
Get-AppxPackage -Name "Microsoft.HEVCVideoExtension"
# Install chocolatey packages
# Programming
choco install visualstudio2022community -y
choco install visualstudio2022-workload-manageddesktop -y
choco install visualstudio2022-workload-netweb -y
choco install dotnet-6.0-runtime -y
choco install dotnet-6.0-sdk -y
choco install dotnet-6.0-desktopruntime -y
choco install vscode -y
choco install vscode-powershell -y
choco install vscode-gitlens -y
choco install winscp -y
choco install git -y
choco install git-lfs -y
# Gaming
choco install steam-client -y
choco install discord -y
# Utilities
choco install lghub -y
choco install googlechrome -y
choco install battle.net -y
choco install nvidia-display-driver -y
choco install wireshark -y
choco install nmap -y
choco install notepadplusplus -y
choco install 7zip -y
choco install roccatswarm -y
choco install teamviewer -y
choco install soundswitch -y
choco install vmwareworkstation -y
choco install microsoft-windows-terminal -y
# VMware Workstation Pro - Install license
$VMwareItem = Get-ChildItem `
-Path 'HKLM:\SOFTWARE\WOW6432Node\VMware, Inc.\VMware Workstation\'
$LicenseItem = $VMwareItem | Where-Object { $_.Name -like "*License*.ws.16.*" }
$LicenseItem | Set-ItemProperty -Name "Serial" -Value "ZF71R-DMX85-08DQY-8YMNC-PPHV8"
# Disable Windows Aero-Shake
Set-ItemProperty `
-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ `
-Name "DisallowShaking" `
-Value 0x1
# Show file extenstions
Set-ItemProperty `
-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ `
-Name "HideFileExt" `
-Value 0x0
# Set Searchbar to Icon only
Set-ItemProperty `
-Path HKCU:\\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\ `
-Name "SearchboxTaskbarMode" `
-Value 0x1
# Hide Task View button from Taskbar
Set-ItemProperty `
-Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ `
-Name "ShowTaskViewButton" `
-Value 0x0
# Hide weather from Taskbar
Set-ItemProperty `
-Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\ `
-Name "ShellFeedsTaskbarViewMode" `
-Value 0x2
# Windows Explorer open 'Thic PC' when opened
Set-ItemProperty `
-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" `
-Name "LaunchTo" `
-Value 0x1
# Windows Search disable Search box suggestions
Set-ItemProperty `
-Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" `
-Name "DisableSearchBoxSuggestions" `
-Value 0x1
# Disable Chrome media key hijacking
https://zapier.com/blog/stop-chrome-from-hijacking-media-keys/
# Hide family options : https://www.tenforums.com/tutorials/99479-hide-family-options-windows-security-windows-10-a.html
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); `
Get-Boxstarter -Force; `
Install-BoxstarterPackage 'https://gist.githubusercontent.com/stogoh/cf20810106fcca67bb0382c53eb76847/raw/828b0c2549e4d8d130984e811ebbc744e660e5c5/01-windows-setup'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment