Get-WindowsFeature

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]

Key
   -Name string
       The command IDs of roles, role services, or features to retrieve.
       Alternatively, an array of Feature objects will also be accepted.
       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.

   -logPath string
       The name and location of a log file, other than the default, %windir%\logs\ServerManager.log.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Examples

Return a list of features with Command ID that starts with AD or Web:

C:\PS> Get-WindowsFeature AD*,Web*

Get all the Windows features available on the computer:

C:\PS> Get-WindowsFeature

"What has destroyed every previous civilization has been the tendency to the unequal distribution of wealth and power” ~ Henry George

Related PowerShell Commands:

Add-WindowsFeature - Install roles, role services, and features
Remove-WindowsFeature - Remove roles, role services, and features


Copyright © SS64.com 1999-2018
Some rights reserved