My Boxstarter Script


Whats the problem

Setting up a new machine is always a bit of a pain. Wouldn't it be nice if your machine could just get the software you wanted and install it for you.

Welcome BoxStarter can install all of your software out with a single command.


My Script

My current Home Development Script can be found at my GitHub Repository Here it is at the time of writing this post:

# Boxstarter options
$Boxstarter.RebootOk=$true # 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
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
# disable defrag because I have an SSD 
Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask 
# Install Visual Studio 2015
cinst visualstudio2015enterprise
if (Test-PendingReboot) { Invoke-Reboot }
#Other dev tools
cinst visualstudiocode -y
cinst nodejs.install -y
choco install unity -y
cinst googlechrome -y
cinst firefox -y
#Other tools
cinst notepadplusplus -y
cinst 7zip.install -y
cinst adobereader -y
cinst skype -y
cinst dropbox -y
cinst virtualbox -y
choco install jdk8 -y
cinst putty.install -y
cinst spotify -y
cinst vlc -y
choco install steam -y
# VS extensions
Install-ChocolateyVsixPackage ProPowerTools
Install-ChocolateyVsixPackage vstu2015
# Node modules (Global)
npm install -g gulp
npm install -g bower
npm install -g typings
npm install -g hexo-cli
npm install -g typescript
if (Test-PendingReboot) { Invoke-Reboot }
#cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
cinst IIS-HttpCompressionDynamic -source windowsfeatures
cinst IIS-ManagementScriptingTools -source windowsfeatures
cinst IIS-WindowsAuthentication -source windowsfeatures
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)GoogleChromeApplicationchrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)Microsoft Visual Studio 14.0Common7IDEdevenv.exe"
# Update Windows and reboot if necessary
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
if (Test-PendingReboot) { Invoke-Reboot }

Boxstarter is able to use Chocolatey Packages which means it has access to many many pieces of software.

Other Windows 10 Options

Alternatively you can now use a Package Manager in Windows.
Windows 10 now includes a Package Manager. Check out my personal favourite Chocolatey which includes many many Packages