The two PowerShell commands below will enumerate roles on a Windows 2008 R2 Server. The same data can be found via the Server Manager GUI, but the PowerShell option can create an overall list.
import-module servermanager
get-windowsfeature
Enumerate roles on a Windows 2008 R2 Server using PowerShell
Reviewed by 0x000216
on
Sunday, May 01, 2011
Rating: 5