Skip to content

Instantly share code, notes, and snippets.

@korzo
Forked from alimbada/Export-Chocolatey.ps1
Created August 29, 2017 04:37
Show Gist options
  • Save korzo/fe34b168f5eb6ff2d89bf2452bf6cb3d to your computer and use it in GitHub Desktop.
Save korzo/fe34b168f5eb6ff2d89bf2452bf6cb3d to your computer and use it in GitHub Desktop.
Export installed Chocolatey packages as chocolatey script
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment