Created
June 9, 2016 08:05
-
-
Save alexcmd/4db91fe1fc6b082a1de8a67145a5d2a5 to your computer and use it in GitHub Desktop.
This file contains 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
#GET | |
Get-WindowsFeature | ? { $_.Installed -AND $_.SubFeatures.Count -eq 0 } | Export-Clixml ServerFeatures.xml | |
#Set | |
$ServerFeatures = Import-Clixml ServerFeatures.xml | |
foreach ($feature in $ServerFeatures) {Install-WindowsFeature -Name $feature.name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment