Skip to content

Instantly share code, notes, and snippets.

@ThaddParker
Created November 20, 2018 00:03
Show Gist options
  • Save ThaddParker/36313754af24c4c4bd492f55ebbd1a56 to your computer and use it in GitHub Desktop.
Save ThaddParker/36313754af24c4c4bd492f55ebbd1a56 to your computer and use it in GitHub Desktop.
# Show hidden files, Show protected OS files, Show file extensions
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensionsEnable-RemoteDesktop
$Boxstarter.RebootOK=$true
Update-ExecutionPolicy Unrestricted
Disable-InternetExplorerESC
Install-WindowsUpdate -AcceptEula
#if(Test-PendingReboot){Invoke-Reboot}
#generate a new profile for refreshing
new-item -path $profile -itemtype file
cinst -y chocolatey
cinst -y azurepowershell
cinst -y google-chrome-x64
cinst -y sysinternals
cinst -y git
cinst -y notepadplusplus.install
cinst -y vscode
cinst -y azure-cli
cinst -y 7zip.install
refreshenv
cinst -y anaconda3
cinst -y rsat
#reboot here
cinst -y sql-server-management-studio
#reboot here
#configure the environment
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Tools\Anaconda3;C:\Tools\Anaconda3\Scripts;C:\Tools\Anaconda3\bin", [EnvironmentVariableTarget]::Machine)
refreshenv
# common code location across machines
# mkdir C:\Sources\Repos
mkdir F:\Sources\Repos
# installs vs code extensions into a common directory
code --extensions-dir "C:\Tools\VSCodeExtensions"
code --install-extension donjayamanne.githistory
code --install-extension eamodio.gitlens
code --install-extension eg2.vscode-npm-script
code --install-extension felipecaputo.git-project-manager
code --install-extension humao.rest-client
code --install-extension ms-mssql.mssql
code --install-extension ms-python.anaconda-extension-pack
code --install-extension ms-python.python
code --install-extension ms-toolsai.vscode-ai
code --install-extension ms-vscode.azure-account
code --install-extension ms-vscode.azurecli
code --install-extension ms-vscode.PowerShell
code --install-extension ms-vsts.team
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension PeterJausovec.vscode-docker
code --install-extension redhat.vscode-yaml
code --install-extension remcoros.startanyshell
code --install-extension robertohuertasm.vscode-icons
code --install-extension Tyriar.shell-launcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment