Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Last active August 29, 2015 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnLBevan/d79a6973509bf5bae425 to your computer and use it in GitHub Desktop.
Save JohnLBevan/d79a6973509bf5bae425 to your computer and use it in GitHub Desktop.
This script should be used by all members of the Application Services team to ensure they have a common toolset ready to use (NB: also includes additional developer options which have been commented out / which will make up an advanced version later).
##Install Chocolatey
#iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
##Install BoxStarter
#choco install boxstarter
#
#Or simpler:
#http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/JohnLBevan/d79a6973509bf5bae425/raw/97b183bbba7946b8992e037e56f7bdb347a930be/BoxStarter_AppServicesTeam.txt
#ref: see https://github.com/mwrock/Chocolatey-Packages/blob/master/mwrock-TfsDesktop/tools/ChocolateyInstall.ps1 for a great example script
#https://gist.github.com/DavidBoike/11269706/4007b58e122dcb926cc7f0e4f134e51bfaebee78
#http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter/
#script 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
#end script options
#basic config
Update-ExecutionPolicy Unrestricted
#Set-ExplorerOptions -showProtectedOSFiles -showFileExtensions -showHidenFilesFoldersDrives #spelling mistake in hiden intentional; https://boxstarter.codeplex.com/wikipage?title=Set-ExplorerOptions
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
#Enable-RemoteDesktop
Disable-InternetExplorerESC
Disable-UAC
#Set-TaskbarSmall
Set-TaskbarOptions -Size Small -Lock -Dock Bottom
if (Test-PendingReboot) { Invoke-Reboot }
#end basic config
#.net frameworks
cinst DotNet3.5 -y #includes 2.0 & 3.0
cinst DotNet4.5.1 -y #includes 4.0 and 4.5
#end .net frameworks
#box starter
cinst powershell -y #get the latest version of powershell (4.0 at time of writing)
cinst chocolatey -y #needs to be installed first; otherwise doesn't play well
cinst boxstarter -y #needs to be installed first; otherwise doesn't play well
#end box starter
#windows updates
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
#end windows updates
#infrastructure
#if (Test-PendingReboot) { Invoke-Reboot }
#alternate syntax for below: cWindowsFeatures IIS-WebServerRole
#cinstm IIS-WebServerRole -source windowsfeatures
#cinstm IIS-ISAPIFilter -source windowsfeatures
#cinstm IIS-ISAPIExtensions -source windowsfeatures
#cinstm IIS-NetFxExtensibility -source windowsfeatures
#cinstm IIS-ASPNET -source windowsfeatures
#cinstm IIS-ASPNET45 -source windowsfeatures
#cinstm IIS-HttpCompressionDynamic -source windowsfeatures
#cinstm IIS-ManagementScriptingTools -source windowsfeatures
#cinstm IIS-WindowsAuthentication -source windowsfeatures
#if (Test-PendingReboot) { Invoke-Reboot }
#end infrastructure
#utils
cinst pscx -y #powershell community extensions
if (Test-PendingReboot) { Invoke-Reboot }
cinst javaruntime -y #
if (Test-PendingReboot) { Invoke-Reboot }
cinst programmersnotepad -y #my text editor of choice (many prefer: notepadplusplus)
cinst 7zip -y #7-zip compression
cinst filezilla -y #ftp client
cinst ransack -y #MythicSoft's Agent Ransack; advanced file search
cinst keepass -y #password manager
cinst sysinternals -y #MS sysinternals utils
cinst procexp -y #process explorer
cinst windirstat -y #disk space aid
cinst winmerge -y #file comparison
#cinstm greenshot #screenshots
cinst techsmithsnagit -y #screenshots (proprietary)
#cinstm linqpad4 #
#cinstm fiddler #
#cinstm wireshark #
if (Test-PendingReboot) { Invoke-Reboot }
#end utils
#bits and bobs
cinst flashplayerplugin -y
#end bits and bobs
#developer tools
#cinstm git
#cinstm git.install
#cinstm python
#cinstm visualstudiocommunity2013
#if (Test-PendingReboot) { Invoke-Reboot }
#cinstm nugetPackageExplorer
#if (Test-PendingReboot) { Invoke-Reboot }
cinst sqlserver2012express -y -managementstudio #ssms only; may want to add other bits down the line https://chocolatey.org/packages?q=sql+server+2012
if (Test-PendingReboot) { Invoke-Reboot }
#end developer tools
#apps
cinst google-chrome-x64 -y
cinst firefox -y
cinst adobereader -y
cinst paint.net -y
cinst skype -y
cinst visioviewer -y
if (Test-PendingReboot) { Invoke-Reboot }
#end apps
#create shortcuts
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles)\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Mozilla Firefox\firefox.exe"
#end create shortcuts
#create file associations
Install-ChocolateyFileAssociation ".txt" "$($Boxstarter.programFiles86)\Programmer's Notepad\pn.exe"
Install-ChocolateyFileAssociation ".log" "$($Boxstarter.programFiles86)\Programmer's Notepad\pn.exe"
#end create file associations
#stuff not listed
#gistbox app
#
#
#
#moved to the end since this one's temperamental
Enable-RemoteDesktop
#other bits which may be of interest (kept from template)
#cinst imageresizerapp
#cinst f.lux
#cinst WindowsLiveWriter
#cinst Microsoft-Hyper-V-All -source windowsFeatures
#http://tbox.codeplex.com/
#done
if (Test-PendingReboot) { Invoke-Reboot }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment