Last active
July 1, 2019 21:55
-
-
Save omarrodriguez15/7c208417a3298a20ca6eb1d261f0680a to your computer and use it in GitHub Desktop.
This is for older windows servers that do not have the WebAdmin module installed so Get-WindowsFeature is not available.
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
| # One-liner not efficent but it works. Max number of features is couple hundred. | |
| dism /online /get-features /format:table | %{$s=$_.Split('|');if ($s.Length -eq 2 -and $s[1].Trim() -eq 'Enabled'){$_};} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment