Skip to content

Instantly share code, notes, and snippets.

@Tryum
Last active November 12, 2018 14:40
Show Gist options
  • Save Tryum/1523cea017b04a15b0d5a26fed970fc7 to your computer and use it in GitHub Desktop.
Save Tryum/1523cea017b04a15b0d5a26fed970fc7 to your computer and use it in GitHub Desktop.
Unattended install of windows dev machine.
# Configure Windows
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
# Allow running PowerShell scripts
Update-ExecutionPolicy Unrestricted
# Allow unattended reboots
$Boxstarter.RebootOk=$false
$Boxstarter.AutoLogin=$false
#no need for hyper-v in a VM guest.
#cinst -y Microsoft-Hyper-V-All -source windowsFeatures
# Packages
cinst -y hyper
## Git
cinst -y git.install
# Restart PowerShell / CMDer before moving on - or run
refreshenv
cinst Git-Credential-Manager-for-Windows
## Node, npm
cinst -y nodejs.install
refreshenv
npm install -g npm-windows-upgrade
## Editors
cinst -y visualstudiocode
## Visual Studio 2017 and UWP workload
cinst -y visualstudio2017community
cinst -y visualstudio2017-workload-universal
## Python
cinst -y python
## Basics
cinst -y vlc
cinst -y GoogleChrome
cinst -y firefox
cinst -y 7zip.install
cinst -y sysinternals
refreshenv
# Pinning Things
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Git\git-bash.exe"
Install-ChocolateyPinnedTaskBarItem "${env:programfiles(x86)}\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe"
Install-ChocolateyPinnedTaskBarItem "$env:LocalAppData\Programs\Microsoft VS Code\Code.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment