-
-
Save castexyz/3f2c2c7c368141db0b480edc82fb0f75 to your computer and use it in GitHub Desktop.
configure a brand new Windows system.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script for Developer Machines | |
# | |
# To run this script, you first have to install boxstarter using the following command (NOTE the "." below is required): | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Run this BoxstarterDevFull.ps1 script by calling the following from **elevated** powershell: | |
# example: Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/castexyz/3f2c2c7c368141db0b480edc82fb0f75/raw/f9633684d23b3d40352489e85647c75154ca12bb/BoxstarterDevFull.ps1 | |
Update-ExecutionPolicy -Policy RemoteSigned | |
# Workaround for nested chocolatey folders resulting in path too long error | |
$ChocoCachePath = "C:\Temp" | |
New-Item -Path $ChocoCachePath -ItemType directory -Force | |
# Trust PSGallery | |
Get-PackageProvider -Name Nuget -ForceBootstrap | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
# Temporary | |
Disable-UAC | |
# General boxstarter settings # | |
$Boxstarter.RebootOk=$false # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
############################# | |
# Privacy / Security Settings | |
############################# | |
Disable-BingSearch | |
Disable-GameBarTips | |
############################ | |
# Personal Preferences on UI | |
############################ | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
# Change Explorer home screen back to "This PC" | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1 | |
# Better File Explorer | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2 | |
########## | |
# Browsers | |
########## | |
choco install firefox | |
####### | |
# Tools | |
####### | |
# Install Zip Tools | |
cup 7zip --cacheLocation $ChocoCachePath | |
# Install Productivity Tools | |
choco install skype -y | |
choco install greenshot -y | |
choco install windirstat -y | |
choco install steam -y | |
choco install amd-ryzen-master -y | |
choco install gnucash --version=5.4.0 -y | |
choco install discord -y | |
choco install notepadplusplus -y | |
choco install crucial-storage-executive -y | |
choco install samsung-magician -y | |
choco install plex -y | |
##################################### | |
# Update Windows, reboot and clean up | |
##################################### | |
# Clean up the cache directory | |
Remove-Item $ChocoCachePath -Recurse | |
#--- Restore Temporary Settings --- | |
choco feature disable -n=allowGlobalConfirmation | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula | |
Enable-UAC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment