Skip to content

Instantly share code, notes, and snippets.

@martic
Last active May 4, 2018 22:17
Show Gist options
  • Select an option

  • Save martic/44969daf45ca6c6bd2d9 to your computer and use it in GitHub Desktop.

Select an option

Save martic/44969daf45ca6c6bd2d9 to your computer and use it in GitHub Desktop.
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
Disable-UAC
Set-TaskbarSmall
if (Test-PendingReboot) { Invoke-Reboot }
# Update Windows and reboot if necessary
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
# Install Visual Studio 2017 Community
cinst visualstudio2017community
if (Test-PendingReboot) { Invoke-Reboot }
cinst visualstudiocode
if (Test-PendingReboot) { Invoke-Reboot }
# Visual Studio SDK required for PoshTools extension
#cinst VS2013SDK
#if (Test-PendingReboot) { Invoke-Reboot }
#cinst DotNet3.5 # Not automatically installed with VS 2013. Includes .NET 2.0. Uses Windows Features to install.
#if (Test-PendingReboot) { Invoke-Reboot }
# VS extensions
cinst webessentials2015
#Install-ChocolateyVsixPackage PowerShellTools http://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/112013/6/PowerShellTools.vsix
#Install-ChocolateyVsixPackage WebEssentials2013 http://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/file/105627/31/WebEssentials2013.vsix
#Install-ChocolateyVsixPackage T4Toolbox http://visualstudiogallery.msdn.microsoft.com/791817a4-eb9a-4000-9c85-972cc60fd5aa/file/116854/1/T4Toolbox.12.vsix
#Install-ChocolateyVsixPackage StopOnFirstBuildError http://visualstudiogallery.msdn.microsoft.com/91aaa139-5d3c-43a7-b39f-369196a84fa5/file/44205/3/StopOnFirstBuildError.vsix
# AWS Toolkit is now an MSI available here http://sdk-for-net.amazonwebservices.com/latest/AWSToolsAndSDKForNet.msi (no chocolatey package as of FEB 2014)
# Install-ChocolateyVsixPackage AwsToolkit http://visualstudiogallery.msdn.microsoft.com/175787af-a563-4306-957b-686b4ee9b497
#cinst microsoftsecurityessentials
#Other dev tools
cinst fiddler4
#cinst beyondcompare
cinst winmerge
#cinst resharper
cinst ProcExp
#cinst sysinternals
cinst NugetPackageExplorer
cinst windbg
cinst Devbox-Clink # Clink improves the existing command prompt (e.g., paste works)
#cinst TortoiseHg
#cinst VisualHG # Chocolatey package is corrupt as of Feb 2014
cinst linqpad4
cinst TestDriven.Net
#cinst ncrunch2.vs2013
#cinst dotpeek
#cinst mssqlserver2012express
cinst sqlserver2008r2express
cinst officecustomuieditor
cinst stylecop
cinst webpi
# non .net devtools
cinst gow
cinst putty
cinst gitextensions
#cinst sublimetext3
#cinst notepadplusplus
#cinst netbeans
cinst composer
cinst nodejs.install
cinst npm
cinst ruby
cinst compass
cinst filezilla
cinst virtualbox
cinst virtualbox.extensionpack
cinst vagrant
# Images
cinst InkScape
cinst irfanView
cinst irfanviewplugins
cinst gimp
cinst sharex
#cinst greenshot
#Browsers
cinst googlechrome
cinst firefox
#malware
cinst malwarebytes
cinst ccleaner
#Other essential tools
cinst 7zip
#cinst adobereader
cinst javaruntime
cinst dropbox
cinst passwordsafe
cinst evernote
cinst pdfxchangeviewer
cinst clover
cinst googledrive
#cinst itunes
#Admin
cinst vmwarevsphereclient
cinst terminals
cinst windirstat
cinst teamviewer
#other
cinst audacity
cinst vlc
cinst recuva
# Use Chocolatey to download and install from vandor sites
# http://forticlient.com/downloads/FortiClientOnlineInstaller.exe
#Get-ChocolateyWebFile 'FortiClient' '%USERPROFILE%\downloads\FortiClientOnlineInstaller.exe' 'http://forticlient.com/downloads/FortiClientOnlineInstaller.exe'
#Install-ChocolateyInstallPackage 'FortiClient' 'exe' '/S' '%USERPROFILE%\downloads\FortiClientOnlineInstaller.exe'
# https://dbsourcetools.codeplex.com/downloads/get/928435 DBSourceToolsSetup_1.3.2.exe
#Get-ChocolateyWebFile 'DBSourceTools' '%USERPROFILE%\downloads\DBSourceToolsSetup_1.3.2.exe' 'https://dbsourcetools.codeplex.com/downloads/get/928435'
#Install-ChocolateyInstallPackage 'DBSourceTools' 'exe' '/S' '%USERPROFILE%\downloads\DBSourceToolsSetup_1.3.2.exe'
# http://gforge.devio.at/frs/download.php/77/smoscript-setup.0.20.msi
Get-ChocolateyWebFile 'SmoScript' '%USERPROFILE%\downloads\smoscript-setup.0.20.msi' 'http://gforge.devio.at/frs/download.php/77/smoscript-setup.0.20.msi'
Install-ChocolateyInstallPackage 'SmoScript' 'exe' '/S' '%USERPROFILE%\downloads\smoscript-setup.0.20.msi'
# http://www.architectshack.com/GetFile.aspx?Page=PoorMansTSqlFormatter&File=SqlFormatterSSMSAddIn.Setup.1.5.3.msi
Get-ChocolateyWebFile 'SqlFormatterSSMSAddIn' '%USERPROFILE%\downloads\SqlFormatterSSMSAddIn.Setup.1.5.3.msi' 'http://www.architectshack.com/GetFile.aspx?Page=PoorMansTSqlFormatter&File=SqlFormatterSSMSAddIn.Setup.1.5.3.msi'
Install-ChocolateyInstallPackage 'SqlFormatterSSMSAddIn' 'exe' '/S' '%USERPROFILE%\downloads\SqlFormatterSSMSAddIn.Setup.1.5.3.msi'
# http://downloads.sourceforge.net/project/camstudio/legacy/CamStudioCodec_1.5_Setup.exe
Get-ChocolateyWebFile 'CamStudio' '%USERPROFILE%\downloads\CamStudioCodec_1.5_Setup.exe' 'http://downloads.sourceforge.net/project/camstudio/legacy/CamStudioCodec_1.5_Setup.exe'
Install-ChocolateyInstallPackage 'CamStudio' 'exe' '/S' '%USERPROFILE%\downloads\CamStudioCodec_1.5_Setup.exe'
# http://www.microsoft.com/en-us/download/confirmation.aspx?id=30425
#Get-ChocolateyWebFile 'OpenXMLSDK' '%USERPROFILE%\downloads\OpenXMLSDKV25.msi' 'http://www.microsoft.com/en-us/download/confirmation.aspx?id=30425'
#Install-ChocolateyInstallPackage 'OpenXMLSDK' 'exe' '/S' '%USERPROFILE%\downloads\OpenXMLSDKV25.msi'
# http://www.ssmstoolspack.com/Download/STP?v=3.2.2.0
Get-ChocolateyWebFile 'SSMSToolsPack' '%USERPROFILE%\downloads\SSMSToolsPack.3.2.2.0.msi' 'http://www.ssmstoolspack.com/Download/STP?v=3.2.2.0'
Install-ChocolateyInstallPackage 'SSMSToolsPack' 'exe' '/S' '%USERPROFILE%\downloads\SSMSToolsPack.3.2.2.0.msi'
# Manual
# OFFICE
# AUSkey
#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 12.0\Common7\IDE\devenv.exe"
Enable-UAC
if (Test-PendingReboot) { Invoke-Reboot }
@martic
Copy link
Author

martic commented May 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment