Last active
October 28, 2019 22:03
-
-
Save NicholasBallard/1a126c369ec092d185c03e7817a16a71 to your computer and use it in GitHub Desktop.
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
<# | |
chocopkgs.ps1 | |
Install packages listed in variable $packages on a Windows machine in Powershell (Administrator) | |
#> | |
$packages = @" | |
audacity | |
autohotkey.install | |
awscli | |
azure-cli | |
chromedriver | |
colortool | |
conemu | |
dart-sdk | |
docker-desktop | |
everything | |
ffmpeg | |
filezilla | |
firacode | |
firefox | |
git | |
googlechrome | |
jq | |
jre8 | |
libreoffice-fresh | |
markdown-edit | |
microsoft-teams | |
microsoft-windows-terminal | |
mysql | |
mysql.workbench | |
nodejs | |
nteract | |
nvm | |
php | |
postgresql | |
postman | |
pritunl-client | |
python | |
quicklook | |
sgt-puzzles | |
steam | |
tor-browser | |
treesizefree | |
vim | |
virtualbox | |
vlc | |
vscode | |
wget | |
youtube-dl | |
zeal.portable | |
"@ | |
# multiline text -> array | |
$packages = $packages -Split [System.Environment]::NewLine | |
foreach ($item in $packages) { | |
$item = $item | % { $_.Trim() } | |
} | |
# array -> string joined on " " | |
# $packages = [string]$packages | |
# choco install --confirm $packages | |
foreach ($pkg in $packages) { | |
choco install --confirm $pkg | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment