Skip to content

Instantly share code, notes, and snippets.

@alimbada
Last active April 25, 2023 02:13
Show Gist options
  • Save alimbada/f94ea22fa3316204ce6c to your computer and use it in GitHub Desktop.
Save alimbada/f94ea22fa3316204ce6c to your computer and use it in GitHub Desktop.
Export installed Windows features as chocolatey script
dism /online /Get-Features /Format:Table | Select-String Enabled | % {($_ -split '\|', 2)[0].Trim()} | % { "choco install $_ -source windowsfeatures" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment