Last active
April 25, 2023 02:13
-
-
Save alimbada/f94ea22fa3316204ce6c to your computer and use it in GitHub Desktop.
Export installed Windows features as chocolatey script
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
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