Skip to content

Instantly share code, notes, and snippets.

#install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#generate list of installed applications with exact version
choco list -lo -r -y | % { "choco install " + $_.Replace("|", " ") + " -y" }
#generate list of installed application without version.
choco list -lo --id-only -y | % { "choco install " + $_.Replace("|", " ") + " -y" }