This file contains hidden or 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
#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" } | |