Ex1.
PS1 > get-windowsfeature | select displayname, name
PS1 > get-windowsfeature | select name | export-csv {filename.csv} -verbose
Ex2.
PS1 > Get-WindowsFeature |where installed
Display Name Name Install State
------------ ---- -------------
[X] File and Storage Services FileAndStorage-Services Installed
[X] Storage Services Storage-Services Installed
[X] Web Server (IIS) Web-Server Installed
[X] Web Server Web-WebServer Installed
[X] Common HTTP Features Web-Common-Http Installed
[X] Default Document Web-Default-Doc Installed
[X] Directory Browsing Web-Dir-Browsing Installed
[X] HTTP Errors Web-Http-Errors Installed
[X] Static Content Web-Static-Content Installed
[X] HTTP Redirection Web-Http-Redirect Installed
[X] WebDAV Publishing Web-DAV-Publishing Installed
[X] Health and Diagnostics Web-Health Installed
[X] HTTP Logging Web-Http-Logging Installed
[X] Custom Logging Web-Custom-Logging Installed
[X] Logging Tools Web-Log-Libraries Installed
[X] Performance Web-Performance Installed
[X] Static Content Compression Web-Stat-Compression Installed
[X] Security Web-Security Installed
[X] Request Filtering Web-Filtering Installed
[X] Basic Authentication Web-Basic-Auth Installed
[X] Windows Authentication Web-Windows-Auth Installed
[X] Application Development Web-App-Dev Installed
[X] .NET Extensibility 3.5 Web-Net-Ext Installed
[X] .NET Extensibility 4.6 Web-Net-Ext45 Installed
[X] ASP Web-ASP Installed
[X] ASP.NET 3.5 Web-Asp-Net Installed
[X] ASP.NET 4.6 Web-Asp-Net45 Installed
[X] CGI Web-CGI Installed
[X] ISAPI Extensions Web-ISAPI-Ext Installed
[X] ISAPI Filters Web-ISAPI-Filter Installed
[X] Server Side Includes Web-Includes Installed
[X] Management Tools Web-Mgmt-Tools Installed
[X] IIS Management Console Web-Mgmt-Console Installed
[X] IIS 6 Management Compatibility Web-Mgmt-Compat Installed
[X] IIS 6 Metabase Compatibility Web-Metabase Installed
[X] IIS 6 Management Console Web-Lgcy-Mgmt-Console Installed
[X] IIS 6 Scripting Tools Web-Lgcy-Scripting Installed
[X] IIS 6 WMI Compatibility Web-WMI Installed
[X] IIS Management Scripts and Tools Web-Scripting-Tools Installed
[X] .NET Framework 3.5 Features NET-Framework-Features Installed
[X] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Installed
[X] .NET Framework 4.6 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.6 NET-Framework-45-Core Installed
[X] ASP.NET 4.6 NET-Framework-45-ASPNET Installed
[X] WCF Services NET-WCF-Services45 Installed
[X] HTTP Activation NET-WCF-HTTP-Activat... Installed
[X] Message Queuing (MSMQ) Activation NET-WCF-MSMQ-Activat... Installed
[X] Named Pipe Activation NET-WCF-Pipe-Activat... Installed
[X] TCP Activation NET-WCF-TCP-Activati... Installed
[X] TCP Port Sharing NET-WCF-TCP-PortShar... Installed
[X] Message Queuing MSMQ Installed
[X] Message Queuing Services MSMQ-Services Installed
[X] Message Queuing Server MSMQ-Server Installed
[X] SMB 1.0/CIFS File Sharing Support FS-SMB1 Installed
[X] Windows Defender Features Windows-Defender-Fea... Installed
[X] Windows Defender Windows-Defender Installed
[X] GUI for Windows Defender Windows-Defender-Gui Installed
[X] Windows PowerShell PowerShellRoot Installed
[X] Windows PowerShell 5.1 PowerShell Installed
[X] Windows PowerShell 2.0 Engine PowerShell-V2 Installed
[X] Windows PowerShell ISE PowerShell-ISE Installed
[X] Windows Process Activation Service WAS Installed
[X] Process Model WAS-Process-Model Installed
[X] Configuration APIs WAS-Config-APIs Installed
[X] WoW64 Support WoW64-Support Installed
Ex3.
PS1 > Get-WindowsFeature |select Name, Installed |Export-Csv test.csv -verbose
VERBOSE: Performing the operation "Export-Csv" on target "test.csv".
PS1 > Get-Content test.csv
#TYPE Selected.Microsoft.Windows.ServerManager.Commands.Feature
"Name","Installed"
"AD-Certificate","False"
"ADCS-Cert-Authority","False"
"ADCS-Enroll-Web-Pol","False"
"ADCS-Enroll-Web-Svc","False"
"ADCS-Web-Enrollment","False"
"ADCS-Device-Enrollment","False"
"ADCS-Online-Cert","False"
"AD-Domain-Services","False"
"ADFS-Federation","False"
"ADLDS","False"
"ADRMS","False"
"ADRMS-Server","False"
"ADRMS-Identity","False"
"DeviceHealthAttestationService","False"
"DHCP","False"
"DNS","False"
"Fax","False"
"FileAndStorage-Services","True"
"File-Services","False"
"FS-FileServer","False"
"FS-BranchCache","False"
"FS-Data-Deduplication","False"
"FS-DFS-Namespace","False"
"FS-DFS-Replication","False"
"FS-Resource-Manager","False"
"FS-VSS-Agent","False"
"FS-iSCSITarget-Server","False"
"iSCSITarget-VSS-VDS","False"
"FS-NFS-Service","False"
"FS-SyncShareService","False"
"Storage-Services","True"
"HostGuardianServiceRole","False"
"Hyper-V","False"
"MultiPointServerRole","False"
"NPAS","False"
"Print-Services","False"
"Print-Server","False"
"Print-Scan-Server","False"
"Print-Internet","False"
"Print-LPD-Service","False"
"RemoteAccess","False"
"DirectAccess-VPN","False"
"Routing","False"
"Web-Application-Proxy","False"
"Remote-Desktop-Services","False"
"RDS-Connection-Broker","False"
"RDS-Gateway","False"
"RDS-Licensing","False"
"RDS-RD-Server","False"
"RDS-Virtualization","False"
"RDS-Web-Access","False"
"VolumeActivation","False"
"Web-Server","True"
"Web-WebServer","True"
"Web-Common-Http","True"
"Web-Default-Doc","True"
"Web-Dir-Browsing","True"
"Web-Http-Errors","True"
"Web-Static-Content","True"
"Web-Http-Redirect","True"
"Web-DAV-Publishing","True"
"Web-Health","True"
"Web-Http-Logging","True"
"Web-Custom-Logging","True"
"Web-Log-Libraries","True"
"Web-ODBC-Logging","False"
"Web-Request-Monitor","False"
"Web-Http-Tracing","False"
"Web-Performance","True"
"Web-Stat-Compression","True"
"Web-Dyn-Compression","False"
"Web-Security","True"
"Web-Filtering","True"
"Web-Basic-Auth","True"
"Web-CertProvider","False"
"Web-Client-Auth","False"
"Web-Digest-Auth","False"
"Web-Cert-Auth","False"
"Web-IP-Security","False"
"Web-Url-Auth","False"
"Web-Windows-Auth","True"
"Web-App-Dev","True"
"Web-Net-Ext","True"
"Web-Net-Ext45","True"
"Web-AppInit","False"
"Web-ASP","True"
"Web-Asp-Net","True"
"Web-Asp-Net45","True"
"Web-CGI","True"
"Web-ISAPI-Ext","True"
"Web-ISAPI-Filter","True"
"Web-Includes","True"
"Web-WebSockets","False"
"Web-Ftp-Server","False"
"Web-Ftp-Service","False"
"Web-Ftp-Ext","False"
"Web-Mgmt-Tools","True"
"Web-Mgmt-Console","True"
"Web-Mgmt-Compat","True"
"Web-Metabase","True"
"Web-Lgcy-Mgmt-Console","True"
"Web-Lgcy-Scripting","True"
"Web-WMI","True"
"Web-Scripting-Tools","True"
"Web-Mgmt-Service","False"
"WDS","False"
"WDS-Deployment","False"
"WDS-Transport","False"
"ServerEssentialsRole","False"
"UpdateServices","False"
"UpdateServices-WidDB","False"
"UpdateServices-Services","False"
"UpdateServices-DB","False"
"NET-Framework-Features","True"
"NET-Framework-Core","True"
"NET-HTTP-Activation","False"
"NET-Non-HTTP-Activ","False"
"NET-Framework-45-Features","True"
"NET-Framework-45-Core","True"
"NET-Framework-45-ASPNET","True"
"NET-WCF-Services45","True"
"NET-WCF-HTTP-Activation45","True"
"NET-WCF-MSMQ-Activation45","True"
"NET-WCF-Pipe-Activation45","True"
"NET-WCF-TCP-Activation45","True"
"NET-WCF-TCP-PortSharing45","True"
"BITS","False"
"BITS-IIS-Ext","False"
"BITS-Compact-Server","False"
"BitLocker","False"
"BitLocker-NetworkUnlock","False"
"BranchCache","False"
"NFS-Client","False"
"Containers","False"
"Data-Center-Bridging","False"
"Direct-Play","False"
"EnhancedStorage","False"
"Failover-Clustering","False"
"GPMC","False"
"DiskIo-QoS","False"
"Web-WHC","False"
"Internet-Print-Client","False"
"IPAM","False"
"ISNS","False"
"LPR-Port-Monitor","False"
"ManagementOdata","False"
"Server-Media-Foundation","False"
"MSMQ","True"
"MSMQ-Services","True"
"MSMQ-Server","True"
"MSMQ-Directory","False"
"MSMQ-HTTP-Support","False"
"MSMQ-Triggers","False"
"MSMQ-Multicasting","False"
"MSMQ-Routing","False"
"MSMQ-DCOM","False"
"Multipath-IO","False"
"MultiPoint-Connector","False"
"MultiPoint-Connector-Services","False"
"MultiPoint-Tools","False"
"NLB","False"
"PNRP","False"
"qWave","False"
"CMAK","False"
"Remote-Assistance","False"
"RDC","False"
"RSAT","False"
"RSAT-Feature-Tools","False"
"RSAT-SMTP","False"
"RSAT-Feature-Tools-BitLocker","False"
"RSAT-Feature-Tools-BitLocker-RemoteAdminTool","False"
"RSAT-Feature-Tools-BitLocker-BdeAducExt","False"
"RSAT-Bits-Server","False"
"RSAT-DataCenterBridging-LLDP-Tools","False"
"RSAT-Clustering","False"
"RSAT-Clustering-Mgmt","False"
"RSAT-Clustering-PowerShell","False"
"RSAT-Clustering-AutomationServer","False"
"RSAT-Clustering-CmdInterface","False"
"IPAM-Client-Feature","False"
"RSAT-NLB","False"
"RSAT-Shielded-VM-Tools","False"
"RSAT-SNMP","False"
"RSAT-Storage-Replica","False"
"RSAT-WINS","False"
"RSAT-Role-Tools","False"
"RSAT-AD-Tools","False"
"RSAT-AD-PowerShell","False"
"RSAT-ADDS","False"
"RSAT-AD-AdminCenter","False"
"RSAT-ADDS-Tools","False"
"RSAT-ADLDS","False"
"RSAT-Hyper-V-Tools","False"
"Hyper-V-Tools","False"
"Hyper-V-PowerShell","False"
"RSAT-RDS-Tools","False"
"RSAT-RDS-Gateway","False"