Skip to content

Instantly share code, notes, and snippets.

@ddieppa
Last active March 21, 2016 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddieppa/d31e3360cf9d234606a7 to your computer and use it in GitHub Desktop.
Save ddieppa/d31e3360cf9d234606a7 to your computer and use it in GitHub Desktop.
Playing around with BoxStarter

Playing around a lil bit with BoxStarter

These are my first BoxStarter scripts, awesome way to have your pc up and running really fast.

######################################################
## Boxstarter Dev box install script
######################################################
# Instructions:
#
# To run this, use Internet Exploder and go to http://boxstarter.org/package/url?
#
# more instructions at http://boxstarter.org/LearnWebLauncher
######################################################
# 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
#region Base Windows Settings
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableShowHiddenFilesFoldersDrives
#Disable-InternetExplorerESC #Turns off IE Enhanced Security Configuration that is on by default on Server OS versions
Install-WindowsUpdate -AcceptEula
#Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
#Disable-UAC
Set-TaskbarOptions -Size Small -Lock
TZUTIL /s "Eastern Standard Time"
# Not sure that this is really necessary
#if (Test-PendingReboot) { Invoke-Reboot }
#endregion
#region Add features
choco install IIS-WebServerRole -source windowsfeatures
choco install IIS-HttpCompressionDynamic -source windowsfeatures
choco install IIS-ManagementScriptingTools -source windowsfeatures
#choco install IIS-WindowsAuthentication -source windowsfeatures
#endregion
#region Visual Studio
#choco install visualstudiocommunity2013 -y -version 12.0.31101.0 -packageParameters "/Features:Blend,WebTools,Win8SDK,SQL,WindowsPhone80"
#if (Test-PendingReboot) { Invoke-Reboot }
choco install VisualStudio2013Professional -InstallArguments "/Features:'Blend LightSwitch VCMFCLibraries OfficeDeveloperTools SQL WebTools Win8SDK WindowsPhone80'" -y
#if (Test-PendingReboot) { Invoke-Reboot }
choco install vs2013.4 -y
#if (Test-PendingReboot) { Invoke-Reboot }
# choco install visualstudio2015community -pre -packageParameters "/Features:SQL,WindowsPhone81Emulators,MDDCPlusPlus,MDDJS,ToolsForWin81WP80WP81,VCMFCLibraries" -y
# if (Test-PendingReboot) { Invoke-Reboot }
#endregion
#region Frameworks
#choco install PowerShell -y
cinst DotNet3.5 -y
#choco install DotNet4.5 -y
#if (Test-PendingReboot) { Invoke-Reboot }
#endregion
#region Visual Studio extensions
#There was an error installing 'ReleaseManagementtools'. The exit code returned was 2003. Install-ChocolateyVsixPackage "ReleaseManagementtools" https://visualstudiogallery.msdn.microsoft.com/c8a4ef64-66f3-4611-a99c-259f7f65d69a/file/146186/5/GettingStartedSetup.vsix 12
#Install-ChocolateyVsixPackage "TypeScript1.4" https://visualstudiogallery.msdn.microsoft.com/2d42d8dc-e085-45eb-a30b-3f7d50d55304/file/151666/1/TypeScript_1.4_VS2013.exe 12
# Install-ChocolateyVsixPackage "VsCodeMetrics" https://visualstudiogallery.msdn.microsoft.com/03de6710-4573-460c-aded-96588572dc19/file/124308/2/VsCodeMetrics.vsix 12
# Install-ChocolateyVsixPackage "PostSharp" https://visualstudiogallery.msdn.microsoft.com/a058d5d3-e654-43f8-a308-c3bdfdd0be4a/file/89212/57/PostSharp-4.1.13.exe 12
# Install-ChocolateyVsixPackage "PowerShellTools" https://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/160501/1/PowerShellTools.vsix 12
#Install-ChocolateyVsixPackage "CodeMaid" https://visualstudiogallery.msdn.microsoft.com/76293c4d-8c16-4f4a-aee6-21f83a571496/file/9356/30/CodeMaid_v0.7.6.vsix 12
# Install-ChocolateyVsixPackage "WebWorkbench" https://visualstudiogallery.msdn.microsoft.com/2b96d16a-c986-4501-8f97-8008f9db141a/file/53962/62/Mindscape.WebWorkbench.Integration.10.vsix 12
#Install-ChocolateyVsixPackage "RoutingAssistant" https://visualstudiogallery.msdn.microsoft.com/f0589156-a8e6-47db-8bac-90f01ca6b8a3/file/80662/4/Cobisi.RoutingAssistant-v1.8.vsix 12
#Install-ChocolateyVsixPackage "InstallerProjects" https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d/file/130817/3/VSI_bundle.exe 12
#Install-ChocolateyVsixPackage "UnitTestGenerator" https://visualstudiogallery.msdn.microsoft.com/45208924-e7b0-45df-8cff-165b505a38d7/file/104618/6/GenerateUnitTest.vsix 12
#Install-ChocolateyVsixPackage "HotTowelSpa" https://visualstudiogallery.msdn.microsoft.com/1eb8780d-d522-4dcf-bf56-56f0eab305c2/file/111219/4/HotTowelSpa.2013.vsix 12
#Install-ChocolateyVsixPackage "CodeDigger" https://visualstudiogallery.msdn.microsoft.com/fb5badda-4ea3-4314-a723-a1975cbdabb4/file/100523/7/Microsoft.CodeDigger.vsix 12
#Install-ChocolateyVsixPackage "ClipboardHistory" https://visualstudiogallery.msdn.microsoft.com/62040158-8ae2-4f87-8e09-0a3a812088ec/file/132986/3/ClipboardHistory.vsix 12
#Install-ChocolateyVsixPackage "Snippetizer" https://visualstudiogallery.msdn.microsoft.com/3260eed5-c3c2-44f8-b705-a332d3a9f64b/file/112577/2/Snippetizer.vsix 12
Install-ChocolateyVsixPackage "MVCBoilerplate" https://visualstudiogallery.msdn.microsoft.com/6cf50a48-fc1e-4eaf-9e82-0b2a6705ca7d/file/148517/45/ASP.NET%20MVC%20Boilerplate.vsix 12
Install-ChocolateyVsixPackage "Nuget" https://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca/file/105933/8/NuGet.Tools.2013.vsix 12
Install-ChocolateyVsixPackage "WebEssentials" https://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/file/105627/44/WebEssentials2013.vsix 12
Install-ChocolateyVsixPackage "SqlCeToolbox" https://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9-6e74d369f7a1/file/29445/74/SqlCeToolbox.vsix 12
Install-ChocolateyVsixPackage "DeveloperAssistant_2013" https://visualstudiogallery.msdn.microsoft.com/a1166718-a2d9-4a48-a5fd-504ff4ad1b65/file/125117/17/DeveloperAssistant_2013.vsix 12
Install-ChocolateyVsixPackage "IndentGuide" https://visualstudiogallery.msdn.microsoft.com/e792686d-542b-474a-8c55-630980e72c30/file/48932/20/IndentGuide%20v14.vsix 12
Install-ChocolateyVsixPackage "BootstrapSnippets" https://visualstudiogallery.msdn.microsoft.com/e82e7862-f731-4183-a27a-3a44b261bfe5/file/135904/11/BootstrapSnippets.vsix 12
Install-ChocolateyVsixPackage "EFReversePocoGenerator" https://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838/file/89502/52/EntityFramework%20Reverse%20POCO%20Generator.vsix 12
Install-ChocolateyVsixPackage "VSCommands" https://visualstudiogallery.msdn.microsoft.com/c6d1c265-7007-405c-a68b-5606af238ece/file/106247/21/SquaredInfinity.VSCommands.VS12.vsix 12
Install-ChocolateyVsixPackage "SpecFlow" https://visualstudiogallery.msdn.microsoft.com/90ac3587-7466-4155-b591-2cd4cc4401bc/file/112721/5/TechTalk.SpecFlow.Vs2013Integration.vsix 12
Install-ChocolateyVsixPackage "SpellChecker" https://visualstudiogallery.msdn.microsoft.com/a23de100-31a1-405c-b4b7-d6be40c3dfff/file/104494/7/VisualStudio.SpellChecker.vsix 12
Install-ChocolateyVsixPackage "SideWafleTemplatePack" https://visualstudiogallery.msdn.microsoft.com/a16c2d07-b2e1-4a25-87d9-194f04e7a698/referral/110630 12
Install-ChocolateyVsixPackage "TaskRunnerExplorer" https://visualstudiogallery.msdn.microsoft.com/8e1b4368-4afb-467a-bc13-9650572db708/file/140636/3/TaskRunnerExplorer.vsix 12
Install-ChocolateyVsixPackage "SlowCheetah" https://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5/file/55948/26/SlowCheetah.vsix 12
Install-ChocolateyVsixPackage "VSColorOutput" https://visualstudiogallery.msdn.microsoft.com/f4d9c2b5-d6d7-4543-a7a5-2d7ebabc2496/file/63103/9/VSColorOutput.vsix 12
Install-ChocolateyVsixPackage "MultiEdit" https://visualstudiogallery.msdn.microsoft.com/2beb9705-b568-45d1-8550-751e181e3aef/file/93630/10/MultiEdit.vsix 12
Install-ChocolateyVsixPackage "FileNesting" https://visualstudiogallery.msdn.microsoft.com/3ebde8fb-26d8-4374-a0eb-1e4e2665070c/file/123284/15/File%20Nesting%20v2.1.20.vsix 12
Install-ChocolateyVsixPackage "AddNewFile" https://visualstudiogallery.msdn.microsoft.com/3f820e99-6c0d-41db-aa74-a18d9623b1f3/file/140782/17/Add%20New%20File%20v2.1.39.vsix 12
Install-ChocolateyVsixPackage "AutoHistory" https://visualstudiogallery.msdn.microsoft.com/dfcb2438-180c-4f8a-983b-62d89e141fe3/file/122993/3/Microsoft.VisualStudio.AutoHistory.vsix 12
Install-ChocolateyVsixPackage "MarkdownMode" https://visualstudiogallery.msdn.microsoft.com/0855e23e-4c4c-4c82-8b39-24ab5c5a7f79/file/15725/5/MarkdownMode.vsix 12
Install-ChocolateyVsixPackage "dotNETPortabilityAnalyzer" https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b/file/138960/2/dotNETPortabilityAnalyzer.vsix 12
Install-ChocolateyVsixPackage "ExtensionUpdater" https://visualstudiogallery.msdn.microsoft.com/14973bbb-8e00-4cab-a8b4-415a38d78615/file/150147/10/ExtensionUpdater.vsix 12
Install-ChocolateyVsixPackage "Mexedge" https://visualstudiogallery.msdn.microsoft.com/b6dd8050-77fa-4dba-998f-dabdd255d96d/file/125646/11/Mexedge.Web.Extensions.vsix 12
Install-ChocolateyVsixPackage "LicenseHeaderManager" https://visualstudiogallery.msdn.microsoft.com/5647a099-77c9-4a49-91c3-94001828e99e/file/51979/5/LicenseHeaderManager.vsix 12
Install-ChocolateyVsixPackage "ItalicComments" https://visualstudiogallery.msdn.microsoft.com/0b439a8a-e21a-4e26-b82b-054fbf0acab7/file/3344/2/ItalicComments.vsix 12
Install-ChocolateyVsixPackage "PrettyPaste" https://visualstudiogallery.msdn.microsoft.com/6a23234d-45f6-4212-bac3-f6d9bb08fb1e/file/97937/13/PrettyPaste.vsix 12
Install-ChocolateyVsixPackage "Commentator" https://visualstudiogallery.msdn.microsoft.com/35d6308f-b66b-4bd0-8c1d-3ce901cebdb6/file/121138/5/Commentator.vsix 12
Install-ChocolateyVsixPackage "Gister" https://visualstudiogallery.msdn.microsoft.com/b31916b0-c026-4c27-9d6b-ba831093f6b2/file/62080/4/Gister.vsix 12
Install-ChocolateyVsixPackage "Grunt Launcher" https://visualstudiogallery.msdn.microsoft.com/dcbc5325-79ef-4b72-960e-0a51ee33a0ff/file/109075/22/Grunt%20Launcher%20v1.7.8.vsix 12
Install-ChocolateyVsixPackage "Package Intellisense" https://visualstudiogallery.msdn.microsoft.com/65748cdb-4087-497e-a394-2e3449c8e61e/file/138140/18/Package%20Intellisense%20v1.7.104.vsix 12
#endregion
#region Microsoft Sql Express
choco install mssqlserver2014express -y -version 12.0.2000.8
#if (Test-PendingReboot) { Invoke-Reboot }
choco install mssqlservermanagementstudio2014express -y -version 12.0.2000.8
#if (Test-PendingReboot) { Invoke-Reboot }
#cinst MsSqlServerSchoolSampleDatabase -y
#endregion
#region TextEditors
choco install visualstudiocode -y -version 0.1.0.20150524
choco install atom -y
choco install sublimetext3 -y
# choco install jivkok.sublimetext3.packages -y
#endregion
#region Git
choco install github -version 2.14.1.2
choco install poshgit -y
#choco install kdiff3
choco install gitextensions -y
choco install git-credential-winstore -y
#endregion
#region Browsers
choco install google-chrome-x64 -y
choco install firefox -y
choco install flashplayerplugin -y
choco install adblockplusfirefox -y #this opens firefox
choco install adblockplusie -y -version 1.4
#endregion
#region Development Tools
choco install resharper -y
#choco install yeoman -y
choco install nodejs
choco install linqpad4 -y
choco install fiddler4 -y
choco install dotPeek -y
choco install papercut -y #Simple Desktop Email Receiver
choco install expresso -y #regular expression development tool
#endregion
#region nmp commands
npm install --global yo bower grunt-cli #installing Yeoman + bower + grunt
#endregion
#region CloudStorage
choco install dropbox -y
choco install googledrive -y
#choco install onedrive -y
#endregion
#region Utilities
choco install javaruntime -y
choco install 7zip -y
choco install keepass -y
choco install youtube-dl -y
choco install teamviewer -y
choco install ditto -y
choco install vlc -y
choco install plexmediaserver -y
choco install f.lux -y
choco install Revo.Uninstaller -y
choco install sysinternals -y
choco install greenshot -y
choco install bulkrenameutility -y
choco install malwarebytes -y
choco install PDFCreator -y
choco install Shotcut -y
choco install virtualbox -y
choco install mp3tag -y
choco install FoxitReader -y
choco install qbittorrent -y
#choco install teracopy -pre
# choco install handbrake -y
#choco install ccleaner -y
#choco install speccy -y
#choco install launchy -y
#choco install lockhunter -y
#choco install imgburn -y
#choco install Recuva -y
#choco install MicrosoftSecurityEssentials -y
#choco install httrack -y
#choco install Everything -y
#choco install calibre -y
#endregion
#region Network tools
choco install inssider -y
#choco install nmap -y
#endregion
#region Pin to the Task Bar
#Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" -ErrorAction SilentlyContinue
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" -ErrorAction SilentlyContinue
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe" -ErrorAction SilentlyContinue
Install-ChocolateyPinnedTaskBarItem "$($env:programfiles)\Sublime Text 3\sublime_text.exe" -ErrorAction SilentlyContinue
#endregion
#region File Associations
#text file associations
Install-ChocolateyFileAssociation ".txt" "$($env:programfiles)\Sublime Text 3\sublime_text.exe"
Install-ChocolateyFileAssociation ".xml" "$($env:programfiles)\Sublime Text 3\sublime_text.exe"
Install-ChocolateyFileAssociation ".nuspec" "$($env:programfiles)\Sublime Text 3\sublime_text.exe"
Install-ChocolateyFileAssociation ".config" "$($env:programfiles)\Sublime Text 3\sublime_text.exe"
Install-ChocolateyFileAssociation ".log" "$($env:programfiles)\Sublime Text 3\sublime_text.exe"
#compressed file associations
Install-ChocolateyFileAssociation ".rar" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".zip" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".7z" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".tar" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".gzip" "$($env:programfiles)\7-Zip\7zFM.exe"
#video file associations
Install-ChocolateyFileAssociation ".mp4" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".avi" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".m4v" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mov" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mp4v" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mpeg" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mpg" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".wmv" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".3gp" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".3gpp" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
#endregion
# Set the last used template on the New Project dialog in VS to the C# node
New-Item -Path HKCU:\Software\Microsoft\VisualStudio\12.0 -Name NewProjectDialog -ea SilentlyContinue
#Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\12.0\NewProjectDialog -Name LastUsedTemplateNameProject -Value "Console Application"
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\12.0\NewProjectDialog -Name LastUsedTemplateNodeProject -Value "Templates\Visual C#"
######################################################
## Boxstarter new pc
######################################################
# Instructions:
#
# To run this, use Internet Exploder and go to http://boxstarter.org/package/url?
#
# more instructions at http://boxstarter.org/LearnWebLauncher
######################################################
# 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
#region Browsers
choco install google-chrome-x64 -y
choco install firefox -y
choco install flashplayerplugin -y
choco install adblockplusfirefox -y #this opens firefox
choco install adblockplusie -y -version 1.4
#endregion
#region CloudStorage
choco install dropbox -y
choco install googledrive -y
#endregion
#region Utilities
choco install 7zip -y
choco install keepass -y
choco install youtube-dl -y
choco install teamviewer -y
choco install ditto -y
choco install vlc -y
choco install plexmediaserver -y
choco install qbittorrent -y
#endregion
#region File Associations
#compressed file associations
Install-ChocolateyFileAssociation ".rar" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".zip" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".7z" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".tar" "$($env:programfiles)\7-Zip\7zFM.exe"
Install-ChocolateyFileAssociation ".gzip" "$($env:programfiles)\7-Zip\7zFM.exe"
#video file associations
Install-ChocolateyFileAssociation ".mp4" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".avi" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".m4v" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mov" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mp4v" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mpeg" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".mpg" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".wmv" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".3gp" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
Install-ChocolateyFileAssociation ".3gpp" "$($env:programfiles)\VideoLAN\VLC\vlc.exe"
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment