Listing installed roles
Here's a tip from my book Training Guide: Installing and Configuring Windows Server 2012 from Microsoft Press that shows how to display a list of all installed roles and features on Windows Server 2012:
To display a list of all installed roles and features on the server, pipe the output of the preceding command into the Where-Object cmdlet and use Where-Object to filter out everything except roles and features whose InstallState property is equal to Installed:
Get-WindowsFeature -ComputerName SEA-SRV-1 | Where-Object InstallState -eq Installed
You can narrow your results even further by using the -name parameter of the Get-WindowsFeature cmdlet to select only roles and features that begin with “Print” like this:
Get-WindowsFeature -Name Print* -ComputerName SEA-SRV-1 | Where-Object InstallState -eq Installed
The above tip was previously published in an issue of WServerNews, a weekly newsletter from TechGenix that focuses on the administration, management and security of the Windows Server platform in particular and cloud solutions in general. Subscribe to WServerNews today by going to http://www.wservernews.com/subscribe.htm and join almost 100,000 other IT professionals around the world who read our newsletter!
Mitch Tulloch is an eleven-time recipient of the Microsoft Most Valuable Professional (MVP) award and a widely recognized expert on Windows Server and cloud computing technologies. Mitch is also Senior Editor of WServerNews. For more information about him see http://www.mtit.com.