Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Forked from ChaseFlorell/01-Update-Windows.ps1
Last active August 29, 2015 13:59
Show Gist options
  • Save hyeomans/10550836 to your computer and use it in GitHub Desktop.
Save hyeomans/10550836 to your computer and use it in GitHub Desktop.
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Update-ExecutionPolicy Unrestricted
cinst IIS-WebServerRole -source windowsfeatures
cinst IIS-HttpCompressionDynamic -source windowsfeatures
cinst IIS-ManagementScriptingTools -source windowsfeatures
cinst IIS-WindowsAuthentication -source windowsfeatures
# It's nice to be able to browse NuGet files if necessary
cinstm NugetPackageExplorer
# If we're doing web development, we need a few browsers
cinstm GoogleChrome
cinstm Firefox
cinstm Opera
# Don't quite know why this is important, but I'll install silverlight and java runtime anyways
cinstm Silverlight
cinstm javaruntime
# Gotta have Fiddler
cinstm fiddler4
# Editors and merge tools
cinst sublimetext2
cinst SublimeText2.PackageControl -Version 1.6.3
cinst P4Merge
cinst ConsoleZ
cinst peazip
cinst skype
cinst nodejs
# Without Git, we might as well go home.
cinstm poshgit
cinstm git-credential-winstore -Version 1.2.0.0
# Fix SSH-Agent error by adding the bin directory to the `Path` environment variable
$env:PSModulePath = $env:PSModulePath + ";C:\Program Files (x86)\Git\bin"
# Markdown is how documentation becomes awesomenes
# Unfortunately I'm installing this at the end because it doesn't seem to work unattended... it requires the user to press "ok"
cinstm MarkdownPad2 -installargs "/exelang 1033"
# Get rid of upper case menu in Visual Studio
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
# Run Visual Studio Update
if((Get-Item "$($Boxstarter.programFiles86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe").VersionInfo.ProductVersion -lt "11.0.60115.1") {
if(Test-PendingReboot){Invoke-Reboot}
Install-ChocolateyPackage 'vs update 2 ctp2' 'exe' '/passive /norestart' 'http://download.microsoft.com/download/8/9/3/89372D24-6707-4587-A7F0-10A29EECA317/vsupdate_KB2707250.exe'
}
# VS related extras
Install-ChocolateyVsixPackage "vscommands" http://visualstudiogallery.msdn.microsoft.com/a83505c6-77b3-44a6-b53b-73d77cba84c8/file/74740/18/SquaredInfinity.VSCommands.VS11.vsix 11
Install-ChocolateyVsixPackage "NuGet Package Manager" http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c/file/37502/33/NuGet.Tools.vsix 11
Install-ChocolateyVsixPackage "Console Launcher" http://visualstudiogallery.msdn.microsoft.com/1460ab21-75be-49d0-900f-dfd538321424/file/54475/11/ConsoleLauncher.vsix 11
Install-ChocolateyVsixPackage "TextHighlighterExtension2012" http://visualstudiogallery.msdn.microsoft.com/fd129629-a1a1-417c-ac80-c9ac7a67b968/file/93334/9/TextHighlighterExtension2012.vsix 11
#Adding .Net tools to local path
$env:PSModulePath = $env:PSModulePath + ";" + (Get-Item "Env:windir").Value + "\Microsoft.NET\Framework64\v4.0.30319"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment