-
-
Save danhively/9125221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| # Configure basic system settings | |
| Update-ExecutionPolicy Unrestricted | |
| Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Set-TaskbarSmall | |
| Enable-RemoteDesktop | |
| # Standard packages to install | |
| cinst VisualStudio2013Professional -InstallArguments "WebTools" | |
| cinst mssqlserver2012express | |
| cinst git-credential-winstore | |
| cinst poshgit | |
| cinst Firefox | |
| cinst GoogleChrome | |
| cinst SublimeText3 | |
| cinst SublimeText3.PackageControl | |
| cinst SourceTree | |
| cinst javaruntime | |
| # Add Windows features | |
| # Install all Windows updates | |
| Install-WindowsUpdate -AcceptEula | |
| # Create taskbar items | |
| Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Google\Chrome\Application\chrome.exe" | |
| Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Mozilla Firefox\firefox.exe" | |
| Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\WindowsPowerShell\v1.0\powershell.exe" | |
| Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\NUnit 2.6.3\bin\nunit-x86.exe" | |
| Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Atlassian\SourceTree\SourceTree.exe" | |
| Install-ChocolateyPinnedTaskBarItem "$($boxstarter.programfiles86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" | |
| $EnvPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path | |
| $EnvPath+=";C:\Program Files (x86)\MSBuild\12.0\Bin;C:\Program Files (x86)\NUnit 2.6.3\bin" | |
| Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH –Value $EnvPath | |
| Write-ChocolateySuccess 'boxstarter.desktop' | |
| } catch { | |
| Write-ChocolateyFailure 'boxstarter.desktop' $($_.Exception.Message) | |
| throw | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment