Skip to content

Instantly share code, notes, and snippets.

@da9l
Last active September 18, 2018 06:45
Show Gist options
  • Save da9l/ed4244eb5483ae9159e7a69a74c983f8 to your computer and use it in GitHub Desktop.
Save da9l/ed4244eb5483ae9159e7a69a74c983f8 to your computer and use it in GitHub Desktop.
Create powershell script containing all chocolatey packages on your local machine.
Function Create-InstallMyTools.ps1 {
choco list -lo | % {if($_ -match "(.+) (.+)") {"choco install $($matches[1])"}} > Install-MyTools.ps1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment