Skip to content

Instantly share code, notes, and snippets.

@xzxpurple2017
Last active April 13, 2024 18:30
Show Gist options
  • Save xzxpurple2017/d4ca56b1c0256f949196236d963c8d8d to your computer and use it in GitHub Desktop.
Save xzxpurple2017/d4ca56b1c0256f949196236d963c8d8d to your computer and use it in GitHub Desktop.
Boxstart script to configure new Windows 11 desktop
# Run these commands first to get Boxstarter installed
#
# Set-ExecutionPolicy RemoteSigned
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/xzxpurple2017/d4ca56b1c0256f949196236d963c8d8d/raw/boxstarter.ps1 -DisableReboots
#---- TEMPORARY ---
Disable-UAC
# Move taskbar to left and change search to icon
Set-ItemProperty -Path HKCU:\software\microsoft\windows\currentversion\explorer\advanced -Name 'TaskbarAl' -Type 'DWord' -Value 0
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 1
# Windows Explorer options
Set-WindowsExplorerOptions -EnableShowRibbon
# Enable Remote Desktop
Enable-RemoteDesktop
# Install Chocolatey packages
Invoke-WebRequest -Uri "https://gist.githubusercontent.com/xzxpurple2017/187353c29e21954bbec24ae08d6818cc/raw/packages.config" -OutFile "C:\Windows\Temp\packages.config"
choco install -y "C:\Windows\Temp\packages.config"
Remove-Item "C:\Windows\Temp\packages.config"
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
#--- Restore Temporary Settings ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment