Last active
July 9, 2019 00:10
-
-
Save bitcrazed/27490bc69d96a1cacb146c2e3fb93915 to your computer and use it in GitHub Desktop.
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 | |
# Author: Rich Turner <rich@bitcrazed.com> | |
# Last Updated: 2018-10-26 | |
# | |
# Run this Boxstarter by calling the following from an **ELEVATED PowerShell instance**: | |
# `set-executionpolicy Unrestricted` | |
# `. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force` | |
# `Install-BoxstarterPackage -DisableReboots -PackageName <URL-TO-RAW-GIST>` | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Used to uninstall unwanted default apps --- | |
function Remove-App | |
{ | |
Param ([string]$appName) | |
Write-Output "Trying to remove $appName" | |
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage | |
Get-AppXProvisionedPackage -Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage -Online | |
} | |
#--- Uninstall unwanted default apps --- | |
$applicationList = @( | |
"Microsoft.3DBuilder" | |
"Microsoft.CommsPhone" | |
"Microsoft.Getstarted" | |
"*MarchofEmpires*" | |
"Microsoft.GetHelp" | |
"Microsoft.Messaging" | |
"*Minecraft*" | |
"Microsoft.MicrosoftOfficeHub" | |
"Microsoft.WindowsPhone" | |
"*Solitaire*" | |
"Microsoft.MicrosoftStickyNotes" | |
"Microsoft.Office.Sway" | |
"Microsoft.XboxApp" | |
"Microsoft.XboxIdentityProvider" | |
"Microsoft.NetworkSpeedTest" | |
"Microsoft.Print3D" | |
#Non-Microsoft | |
"*Autodesk*" | |
"*BubbleWitch*" | |
"king.com.CandyCrush*" | |
"*Dell*" | |
"*Dropbox*" | |
"*Facebook*" | |
"*Keeper*" | |
"*Plex*" | |
"*.Duolingo-LearnLanguagesforFree" | |
"*.EclipseManager" | |
"ActiproSoftwareLLC.562882FEEB491" # Code Writer | |
"*.AdobePhotoshopExpress"); | |
foreach ($app in $applicationList) { | |
Remove-App $app | |
} | |
#--- Windows Features --- | |
Set-WindowsExplorerOptions -EnableShowFileExtensions ### -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\AppModelUnlock -Name AllowDevelopmentWithoutDevLicense -Value 1 | |
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 LaunchTo -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2 | |
Enable-RemoteDesktop | |
#--- PowerShell utilities | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -y | |
Install-Module DirColors | |
Install-Module posh-git | |
#--- Install Windows features | |
choco install -y Microsoft-Hyper-V-All -source windowsFeatures | |
choco install -y Microsoft-Windows-Subsystem-Linux -source WindowsFeatures | |
#--- Install Git --- | |
choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' | |
RefreshEnv # Refresh env due to Git install | |
#--- Tools --- | |
choco install -y 7Zip | |
choco install -y vim | |
choco install -y BeyondCompare | |
choco install -y Paint.net | |
choco install -y Sysinternals | |
#--- Install Dev Tools --- | |
#choco install -y ruby | |
#choco install -y python | |
choco install -y nodejs | |
choco install -y visualstudiocode | |
#--- Install Visual Studio --- | |
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community | |
#choco install -y visualstudio2017enterprise | |
#choco install -y visualstudio2017-workload-universal | |
#choco install -y visualstudio2017-workload-manageddesktop | |
#choco install -y visualstudio2017-workload-netcoretools | |
#choco install -y visualstudio2017-workload-nativecrossplat | |
#choco install -y visualstudio2017-workload-nativedesktop | |
#choco install -y visualstudio2017-workload-azure | |
#--- Misc Tools --- | |
choco install -y Vlc | |
#--- Restore Temporary Settings --- | |
Enable-UAC | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula | |
$email = Read-Host "Enter your email address" | |
ssh-keygen -t rsa -b 4096 -C "$email" | |
if (Test-Path d:) { $drive = 'd' } | |
else { $drive = 'c' } | |
if (!@(Test-Path ${drive}:\dev\)) { mkdir ${drive}:\dev\ } | |
cd ${drive}:\dev | |
if (!@(Test-Path ${drive}:\dev\powerrazzle)) { | |
git clone git@github.com:bitcrazed/powerrazzle | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment