Skip to content

Instantly share code, notes, and snippets.

@da9l
Last active June 14, 2024 15:03
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 | % {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