PowerShell How to view Windows feature options _powershell

Source: Internet
Author: User
Tags message queue snmp web services ssl certificate msmq metabase

Using PowerShell to add and remove Windows roles and features in Windows Server 2012 is convenient, but enabling and disabling Windows options on Windows 8.1 is slightly tasteless.

For example, Get-windowsoptionalfeature gets all the current Windows feature options:

Copy Code code as follows:

Ps> Get-windowsoptionalfeature-online | SELECT *-first 1


Featurename:microsoft-hyper-v-all
State:enabled
Path:
Online:true
Winpath:
Sysdrivepath:
Restartneeded:false
Logpath:i:\windows\logs\dism\dism.log
Scratchdirectory:
Loglevel:warningsinfo


What the hell is Microsoft-hyper-v-all? Is it the Hyper-V or Hyper-V management platform in the Windows Features dialog box in the following illustration? It would be nice to have a featurename in English and a localized name in the image below.

PowerShell get Windows feature options

Fortunately, win32_optionalfeature in WMI can do this:

Copy Code code as follows:

Get-wmiobject-class Win32_optionalfeature |
Select Name,caption |
Convertto-html

The output results are:

Name Caption
Microsoft-hyper-v-all Hyper-V
Microsoft-hyper-v-tools-all Hyper-V management tools
Microsoft-hyper-v Hyper-V Platform
Microsoft-hyper-v-management-clients Hyper-V GUI management tools
Microsoft-hyper-v-management-powershell Windows PowerShell Hyper-V modules
Printing-foundation-features Printing and File Services
Printing-foundation-lprportmonitor LPR Port Monitor
Printing-foundation-lpdprintservice LPD Print Service
Printing-foundation-internetprinting-client Internet Print Client
Faxservicesclientpackage Windows Fax and Scan
Scanmanagementconsole Scan Management
Legacycomponents Legacy Components
DirectPlay DirectPlay
Simpletcp Simple TCPIP service (i.e. echo, daytime, etc.)
Snmp Simple Network Management Protocol (SNMP)
Wmisnmpprovider WMI SNMP Provider
Windows-defender-default-definitions
Windows-identity-foundation Windows Identity Foundation 3.5
Microsoftwindowspowershellv2root Windows PowerShell 2.0
MicrosoftWindowsPowerShellV2 Windows PowerShell 2.0 Engine
Directoryservices-adam-client Active Directory Lightweight Directory Service
Internet-explorer-optional-amd64 Internet Explorer 11
NetFx3 . NET Framework 3.5 (including. NET 2.0 and 3.0)
Iis-webserverrole Internet Information Services
Iis-webserver World Wide Web Services
Iis-commonhttpfeatures Common HTTP Features
Iis-httperrors HTTP Error
Iis-httpredirect HTTP redirection
Iis-applicationdevelopment Application development Features
Iis-netfxextensibility . NET Extensibility 3.5
Iis-netfxextensibility45 . NET Extensibility 4.5
Iis-healthanddiagnostics Health and diagnostics
Iis-httplogging HTTP Log
Iis-logginglibraries Log tool
Iis-requestmonitor Request Monitor
Iis-httptracing Tracking
Iis-security Security
Iis-urlauthorization URL Authorization
Iis-requestfiltering Request filtering
Iis-ipsecurity IP Security
Iis-performance Performance features
Iis-httpcompressiondynamic Dynamic Content Compression
Iis-webservermanagementtools WEB Administration Tools
Iis-managementscriptingtools IIS Admin Scripts and tools
Iis-iis6managementcompatibility IIS 6 Administrative compatibility
Iis-metabase IIS metabase and IIS 6 configuration compatibility
Was-windowsactivationservice Windows Process activation Service
Was-processmodel Process Model
Was-netfxenvironment . NET Environment
Was-configurationapi Configuration API
Iis-hostablewebcore Internet Information Services can host WEB cores
Iis-certprovider Centralized SSL certificate Support
Iis-windowsauthentication Windows Authentication
Iis-digestauthentication Digest Authentication
Iis-clientcertificatemappingauthentication Client certificate mapping Authentication
Iis-iiscertificatemappingauthentication IIS Client certificate mapping authentication
Iis-odbclogging ODBC Log Records
Iis-staticcontent Static content
Iis-defaultdocument Default Document
Iis-directorybrowsing Directory browsing
Iis-webdav WebDAV Publishing
Iis-websockets WebSocket protocol
Iis-applicationinit Application initialization
Iis-aspnet asp.net 3.5
Iis-aspnet45 asp.net 4.5
Iis-asp Asp
iis-cgi Cgi
Iis-isapiextensions ISAPI extension
Iis-isapifilter ISAPI Filters
Iis-serversideincludes Server-side contains
Iis-customlogging Custom log
Iis-basicauthentication Basic Authentication
Iis-httpcompressionstatic Static content Compression
Iis-managementconsole IIS Management Console
Iis-managementservice IIS Management Services
Iis-wmicompatibility IIS 6 WMI Compatibility
Iis-legacyscripts IIS 6 Scripting Tools
Iis-legacysnapin IIS 6 Management Console
Iis-ftpserver FTP Server
Iis-ftpsvc FTP Service
Iis-ftpextensibility FTP Extensibility
Msmq-container Microsoft message Queue (MSMQ) server
Msmq-server Microsoft message Queue (MSMQ) Server Core
Msmq-triggers MSMQ triggers
Msmq-adintegration MSMQ Active Directory Domain Service integration
Msmq-http MSMQ HTTP Support
Msmq-multicast Multicast support
Msmq-dcomproxy MSMQ DCOM Proxy
Wcf-services45 WCF Services
Wcf-http-activation45 HTTP activation
Wcf-tcp-activation45 TCP activation
Wcf-pipe-activation45 Named pipe activation
Wcf-msmq-activation45 Message Queuing (MSMQ) activation
Wcf-tcp-portsharing45 TCP Port Sharing
Wcf-http-activation Windows Communication Foundation HTTP activation
Wcf-nonhttp-activation Windows Communication Foundation non-HTTP activation
Netfx4-advsrvs . NET Framework 4.5 Advanced Services
Netfx4extended-aspnet45 asp.net 4.5
Mediaplayback Media features
WindowsMediaPlayer Windows Media Player
Microsoft-windows-mobilepc-client-premium-package-net Network projection
Microsoft-windows-mobilepc-locationprovider-inf Windows Locator Program
Printing-xpsservices-features XPS Service
Rascmak RAS Connection Manager Administration Kit (CMAK)
Rasrip RIP Listeners
Msrdc-infrastructure Remote Differential Compression API support
Searchengine-client-package Windows Search
Telnetclient Telnet Client
Telnetserver Telnet Server
Tftp TFTP Client
Tiffifilter Windows TIFF IFilter
Xps-foundation-xps-viewer XPS Viewer
Workfolders-client Working folder Client
smb1protocol SMB 1.0/cifs file sharing support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.