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

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

1
START http://boxstarter.org/package/nr/url?URL_TO_YOUR_BOXSTARTER_SCRIPT.ps1

My Script

My current Home Development Script can be found at my GitHub Repository.

Here it is at the time of writing this post:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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
#Enable-RemoteDesktop
Disable-InternetExplorerESC
#Disable-UAC
#Set-TaskbarSmall
# 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
#Browsers
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 https://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/file/29666/12/ProPowerTools.vsix
Install-ChocolateyVsixPackage vstu2015 https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9/file/142077/10/vstu2015.msi
# 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)\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.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


Comments: