Last active
December 5, 2022 20:33
-
-
Save orcwarrior/8b2eecb732b402331955b400ebcbc569 to your computer and use it in GitHub Desktop.
Powershell script to install choco pkg manager and install basic suite of tools (git, node, webstorm, docker-desktop, jre, python)
This file contains 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
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
param([switch]$Elevated) | |
function Test-Admin { | |
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) | |
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) | |
} | |
if ((Test-Admin) -eq $false) { | |
if ($elevated) { | |
# tried to elevate, did not work, aborting | |
} else { | |
Start-Process powershell.exe -Verb RunAs -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ($myinvocation.MyCommand.Definition)) | |
} | |
exit | |
} | |
'running with full privileges' | |
choco install -y git nodejs python webstorm jre8 wsl2 docker-desktop putty slack dbeaver powertoys yarn | |
choco install -y pritunl-client |
Updated to force latest LTS version of node
No longer the case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to force latest LTS version of node