1 out of 4 rated this helpful - Rate this topic

Get-WindowsFeature

Get-WindowsFeature


The Get-WindowsFeature cmdlet allows you to retrieve information about
roles, role services, and features that are available on a computer that
is running Windows Server 2008 R2.

Syntax

Get-WindowsFeature [[-Name] <string[]>] [-logPath <string>] [<CommonParameters>]

Detailed Description


The Get-WindowsFeature cmdlet allows you to retrieve information about
roles, role services, and features that are available on a computer that
is running Windows Server 2008 R2. The cmdlet results display both those
Windows features that are already installed on the computer and those that
are available to install.

Parameters

-Name


Specifies the command IDs of roles, role services, or features you want
the Get-WindowsFeature cmdlet to return information about.

You can find a list of command IDs for all roles, role services, and
features in the topic "Overview of Server Manager Commands" in the
Server Manager Help.

Attributes

Name Value

Required?

false

Accept wildcard characters?

true

Accept Pipeline Input?

true (ByValue)

Position?

1

-logPath


Specifies a name and location for a log file, other than the default,
%windir%\logs\servermanager.log. Add this parameter if you want the
results of the Get-WindowsFeature cmdlet to be stored in a log.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Input Type

string[]. Array of strings.

Return Type

Microsoft.Windows.ServerManager.Commands.Feature(s). Feature object(s)

Notes



Examples

Example 1

Get-WindowsFeature AD*,Web*

Returns a list of features with Command ID that starts with AD or Web.

Example 2

Get-WindowsFeature

Get all the Windows features available on the computer.

See Also

Reference

Add-WindowsFeature

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.