Quantcast
Channel: kristofdba – kristof dba
Viewing all articles
Browse latest Browse all 26

Article 1

$
0
0

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

get-windowsfeature | Where {$_.Installed} | Sort FeatureType,Parent,Name | Select Name,Displayname,FeatureType,Parent

get-windowsfeature-sorted
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}

add-windowsfeature

Copy the list, paste it in a powershell windows on the other box.
wait, you’r done!



Viewing all articles
Browse latest Browse all 26

Trending Articles