Using Chocolatey to install software on Windows

Quick post on getting started with Chocolatey.

Launch and admin PowerShell console.


Set-ExecutionPolicy Unrestricted
# Install Chocolatey
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression
# Enable Global confirmation (auto accept any prompts)
choco feature enable -n=allowGlobalConfirmation

Or use this function that checks if it’s installed and it not installs it.


Function Install-Choco
{
Set-ExecutionPolicy Bypass -force
If (!(Test-Path -Path "C:\ProgramData\chocolatey"))
{
$env:chocolateyUseWindowsCompression = 'false'
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression
choco feature enable -n=allowGlobalConfirmation
}
}

Then

Install-Choco

Install some stuff! (Full list of packages available on the site)

choco install googlechrome
choco install notepadplusplus.install
choco install 7zip.install
choco install adobereader
choco install sysinternals
choco install powershell
choco install filezilla
choco install keepass.install
choco install putty
choco install paint.net
choco install mysql.workbench
choco install fiddler
choco install windirstat
choco install greenshot
choco install winmerge
choco install windowsazurepowershell
choco install cutepdf
choco install pscx
choco install github
choco install tightvnc
choco install adblockpluschrome
choco install powergui
choco install teracopy
choco install lastpass
choco install truecrypt
choco install autoruns
choco install logparser
choco install slack
choco install carbon
choco install freefilesync
choco install zoomit
choco install visualstudiocode

More info: https://chocolatey.org/