Skip to content

Instantly share code, notes, and snippets.

@jrolstad
Last active June 14, 2018 22:49
Show Gist options
  • Save jrolstad/74121b591ec8f8f86a09521f77e848e4 to your computer and use it in GitHub Desktop.
Save jrolstad/74121b591ec8f8f86a09521f77e848e4 to your computer and use it in GitHub Desktop.
Dev Machine Setup Script in Powershell
# Install Chocolatey
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
# Install Git
choco install git -y
choco install tortoisegit -y
if (($env:Path.Split(';') -contains "C:\Program Files\Git\bin") -eq $false) {
$env:Path += ";C:\Program Files\Git\bin";
[System.Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine );
}
# install powershell
choco install powershell
$answer = read-host "Upgrading powershell requires a reboot. Would you like to restart now? (y/n)"
Restart-Computer -Confirm
# Setup machine
# Show File Extensions
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $key Hidden 1
Set-ItemProperty $key HideFileExt 0
Set-ItemProperty $key ShowSuperHidden 0
Stop-Process -processname explorer
# Install PSGEt
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
install-module pscx
# Chocolatey
choco install poshgit -y
choco install visualstudiocode -y
choco install googlechrome -y
choco install git-credential-winstore -y
choco install visualstudio2015professional -y
Restart-Computer -Confirm
choco install nuget.commandline -y
choco install conemu -y
choco install sysinternals -y
choco install procexp -y
choco install fiddler -y
choco install resharper -y
#Install .net core sdk https://www.microsoft.com/net/core#windows
# install docker toolbox https://www.docker.com/products/docker-toolbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment