Last active
June 6, 2019 04:07
-
-
Save sgarcesc/279719023e724114db3e42cf8d69c204 to your computer and use it in GitHub Desktop.
Boxstarter installation script
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
# Before running this script run: | |
# Set-ExecutionPolicy RemoteSigned | |
# on an elevated powershell console | |
# Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# Boxstarter | |
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force | |
# Refresh environment variables | |
RefreshEnv.cmd | |
# Run boxstarter script | |
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/sgarcesc/279719023e724114db3e42cf8d69c204/raw/f9b660a512a97269ee0f34e0ac082597a0262dc6/package.ps1 -DisableReboots |
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
# This script is based on jessfraz boxstarter.ps1 script https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f | |
# and NickCraver Windows10-Setup.ps1 script https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
# all the configurations here are my personal preferences, use it at your own discretion. | |
# the configurations here are meant to be run by boxstarter, and some will not work when running the ps1 by itself | |
################## | |
# Temporal: Disable UAC | |
################## | |
Disable-UAC | |
################## | |
# Windows update | |
################## | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula | |
################## | |
# Windows Settings | |
################## | |
# Bing search and game bar | |
Disable-BingSearch | |
Disable-GameBarTips | |
# Explorer options | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -DisableShowRecentFilesInQuickAccess -DisableOpenFileExplorerToQuickAccess | |
# 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 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -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 | |
# 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 | |
# Disable Telemetry (requires a reboot to take effect) | |
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 | |
# Disable Xbox Gamebar | |
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0 | |
Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0 | |
# Turn off People in Taskbar | |
If (-Not (Test-Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) { | |
New-Item -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | Out-Null | |
} | |
Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0 | |
# Disable P2P Update downlods outside of local network | |
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config -Name DODownloadMode -Type DWord -Value 1 | |
################## | |
# Windows Features | |
################## | |
# Windows Subsystem for Linux | |
choco install Microsoft-Hyper-V-All -source windowsFeatures | |
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
# .NET Framework 3.5 | |
choco install NetFx3 -source windowsfeatures | |
# Windows Projected File System | |
choco install Client-ProjFS -source windowsfeatures | |
# Internet Explorer | |
choco uninstall Internet-Explorer-Optional-amd64 -source windowsfeatures | |
################## | |
# App install | |
################## | |
# web browsers | |
choco install googlechrome -y | |
choco install firefox -y | |
# video and music | |
choco install vlc -y | |
# editors | |
choco install notepadplusplus.install -y | |
choco install vscode -y --params "/NoDesktopIcon" | |
# git & clients | |
choco install git.install -y --params "/SChannel /WindowsTerminal /NoShellIntegration" | |
choco install poshgit -y | |
choco install gitkraken -y | |
# consoles | |
choco install putty.install -y | |
choco install cmdermini -y | |
# tools | |
choco install sysinternals -y | |
choco install windirstat -y | |
choco install totalcommander -y | |
choco install dbeaver -y | |
# network / debugging proxys | |
choco install winpcap -y | |
choco install wireshark -y | |
choco install fiddler -y | |
choco install postman -y | |
# SDKs | |
choco install dotnetcore-sdk -y | |
choco install windows-sdk-10.1 -y | |
# clis | |
choco install nodejs.install -y | |
choco install kubernetes-cli -y | |
choco install kubernetes-helm -y | |
choco install draft -y | |
choco install minikube -y | |
# others | |
choco install openvpn -y | |
################## | |
# Remove the kraken! | |
################## | |
# 3D Builder | |
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage | |
# Alarms | |
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage | |
# Autodesk | |
Get-AppxPackage *Autodesk* | Remove-AppxPackage | |
# Bing Weather, News, Sports, and Finance (Money): | |
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage | |
# BubbleWitch | |
Get-AppxPackage *BubbleWitch* | Remove-AppxPackage | |
# Candy Crush & king | |
Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage | |
Get-AppxPackage king.com.* | Remove-AppxPackage | |
# Comms Phone | |
Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage | |
# Dell | |
Get-AppxPackage *Dell* | Remove-AppxPackage | |
# Dropbox | |
Get-AppxPackage *Dropbox* | Remove-AppxPackage | |
Get-AppxPackage *Facebook* | Remove-AppxPackage | |
# Feedback Hub | |
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage | |
# Get Started | |
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage | |
# Keeper | |
Get-AppxPackage *Keeper* | Remove-AppxPackage | |
# Mail & Calendar | |
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage | |
# Maps | |
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage | |
# March of Empires | |
Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage | |
# Messaging | |
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage | |
# Minecraft | |
Get-AppxPackage *Minecraft* | Remove-AppxPackage | |
# Netflix | |
Get-AppxPackage *Netflix* | Remove-AppxPackage | |
# Office Hub | |
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage | |
# One Connect | |
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage | |
# OneNote | |
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage | |
# People | |
Get-AppxPackage Microsoft.People | Remove-AppxPackage | |
# Phone | |
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage | |
# Plex | |
Get-AppxPackage *Plex* | Remove-AppxPackage | |
# Skype (Metro version) | |
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage | |
# Sound Recorder | |
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage | |
# Solitaire | |
Get-AppxPackage *Solitaire* | Remove-AppxPackage | |
# Sticky Notes | |
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage | |
# Sway | |
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage | |
Get-AppxPackage *Twitter* | Remove-AppxPackage | |
# Xbox | |
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxGameOverlay | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Xbox.TCUI | Remove-AppxPackage | |
# Zune Music, Movies & TV | |
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage | |
Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage | |
# Advertising | |
Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage | |
# Solitaire | |
Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage | |
# Print3D | |
Get-AppxPackage Microsoft.Print3D | Remove-AppxPackage | |
# HiddenCityMysteryofShadows | |
Get-AppxPackage *HiddenCity* | Remove-AppxPackage | |
# DolbyLaboratories | |
Get-AppxPackage *Dolby* | Remove-AppxPackage | |
# Minecraft | |
Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage | |
################## | |
# Miscellaneous | |
################## | |
# Set SSH environment virables to use Windows Open SSH, to consolidate only one SSH version | |
setx GIT_SSH 'C:\Windows\System32\OpenSSH\ssh.exe' /m | |
setx SVN_SSH 'C:\Windows\System32\OpenSSH\ssh.exe' /m | |
# Start the Windows Open SSH agent | |
Set-Service -Name ssh-agent -StartupType Automatic | |
Start-Service -Name ssh-agent | |
################## | |
# Temporal: Enable UAC | |
################## | |
Enable-UAC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment