Show Installed Windows Roles and Features

PowerShell one-liner to show which Windows roles and features are currently installed.

 
 
 
 
 
3.5 Star
(16)
Add to favorites
Operating System
4/26/2011
E-mail Twitter del.icio.us Digg Facebook
  • How do I get the installed role information in a remote computer?
    1 Posts | Last post October 04, 2016
    • How do I get the installed role information from a list of remote computer(s)?
  • Not DisplayName
    1 Posts | Last post September 09, 2015
    • How do I display the powershell name for the service instead of the DisplayName?
  • How do i check more than 1 service
    1 Posts | Last post May 14, 2014
    • Hi,
      
      The script is what i'm looking for, but would need to check for more than 1 service and install if it's not currently install on the server.
      
      I do know that the it does check and install, but i would like to add handling for it.
      
      For e.g I need to check whether are those services install, if not then it will install it.
      Add-WindowsFeature -Name Web-Common-Http,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Http-Logging,Web-Request-Monitor,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Performance,Web-Mgmt-Console,Web-Mgmt-Compat,RSAT-Web-Server,WAS
      
      Hope you have an answer for me.
      
      Thanks in advance.
      
  • How do i run this script against a list of servers in a txt file.
    2 Posts | Last post October 21, 2013
    • Hi,
      
      I am looking at running this script againts a list of computers & would appreciate if the output can be pipped to a .csv or .xlxs format.
    • The original script was:
      
      Import-module servermanager ; Get-WindowsFeature | where-object {$_.Installed -eq $True} | format-list DisplayName
      
      to export this to CSV you can adjust the last pipe, export-csv .\Output.csv the whole code would be:
      Import-module servermanager ; Get-WindowsFeature | where-object {$_.Installed -eq $True} | export-csv .\Output.csv