The first post in the windows 2012 series! woot woot!
I needed to setup a 2012 machine based on another machine and started to poke around with powershell .
I listed all the installed features using the ‘get-windowsfeature
‘ cmdlet.
If you execute it, you’l get ALL the features with their status installed or not instal
If you want to list only the installed features you can adapt the command and execute
get-windowsfeature | Where {$_.Installed} | Sort FeatureType,Parent,Name | Select Name,Displayname,FeatureType,Parent
If you would like to get a list of the installed features to install them on another windows 2012 host execute this
get-windowsfeature | Where {$_.Installed} | Sort FeatureType,Parent,Name | Select Name | foreach-object {write-host "Add-Windowsfeature" , $_.name}
Copy the list, paste it in a powershell windows on the other box.
wait, you’r done!
