-
-
Save ilkka/85d09d4e4481070bda55412c388c59c2 to your computer and use it in GitHub Desktop.
Boxstarter Commands for a new Windows box.
This file contains hidden or 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, forked from Jessie Frazelle's verseion | |
# Author: Ilkka <[email protected]> | |
# Last Updated: 2017-09-26 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# OR | |
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots | |
# | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
#--- Fonts --- | |
choco install inconsolata -y | |
#--- Windows Settings --- | |
Disable-BingSearch | |
Disable-GameBarTips | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
#Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock | |
#Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn | |
#--- Windows Subsystems/Features --- | |
choco install Microsoft-Hyper-V-All -source windowsFeatures | |
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
#--- Tools --- | |
choco install git -params '"/GitOnlyOnPath /WindowsTerminal"' -y | |
choco install poshgit | |
choco install sysinternals -y | |
# does not seem to work :((( | |
# choco install jdk8 -y | |
choco install python2 -params '"/InstallDir:c:\Python2"' -y | |
choco install python3 -params '"/InstallDir:c:\Python3"' -y | |
# I want both so rename python to python2 | |
Rename-Item -Path c:\Python2\python.exe -NewName python2.exe | |
Rename-Item -Path c:\Python2\pythonw.exe -NewName pythonw2.exe | |
choco install nodejs -y | |
choco install cmder -y | |
choco install vim -y | |
choco install putty -y | |
#--- Apps --- | |
choco install googlechrome -y | |
choco install docker-for-windows -y | |
choco install slack -y | |
choco install spotify -y | |
choco install procexp -y | |
choco install 7zip -y | |
# choco install sharex | |
# choco install microsoft-teams | |
# choco install vcxsrv | |
#--- Windows Settings --- | |
# Some from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
# Privacy: Let apps use my advertising ID: Disable | |
If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) { | |
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null | |
} | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# WiFi Sense: HotSpot Sharing: Disable | |
If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) { | |
New-Item -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting | Out-Null | |
} | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting -Name value -Type DWord -Value 0 | |
# Add "powershell here" context menu action for directories in explorer | |
If (-Not (Test-Path Registry::\HKEY_CLASSES_ROOT\Directory\shell\powershellmenu)) { | |
New-Item -Path Registry::\HKEY_CLASSES_ROOT\Directory\shell\powershellmenu | Out-Null | |
New-Item -Path Registry::\HKEY_CLASSES_ROOT\Directory\shell\powershellmenu\command | Out-Null | |
} | |
# Gotta jump through hoops to set the Default value here | |
$null = $(get-item -path Registry::HKEY_CLASSES_ROOT\Directory\shell\powershellmenu).OpenSubKey('', 'ReadWriteSubTree').SetValue($null, "Open PowerShell Here") | |
$null = $(get-item -path Registry::HKEY_CLASSES_ROOT\Directory\shell\powershellmenu\command).OpenSubKey('', 'ReadWriteSubTree').SetValue($null, "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'") | |
# WiFi Sense: Shared HotSpot Auto-Connect: Disable | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0 | |
# Start Menu: Disable Bing Search Results | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 0 | |
# To Restore (Enabled): | |
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 1 | |
# Disable Telemetry (requires a reboot to take effect) | |
# Note this may break Insider builds for your organization | |
# Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0 | |
# Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled | |
#--- Restore Temporary Settings --- | |
#Enable-UAC | |
#Enable-MicrosoftUpdate | |
#Install-WindowsUpdate -acceptEula | |
#--- Rename the Computer --- | |
# Requires restart, or add the -Restart flag | |
#$computername = "acidburn" | |
#if ($env:computername -ne $computername) { | |
# Rename-Computer -NewName $computername | |
#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment