Get-WindowsFeature

Retrieve information about roles, role services, and features that are available on a computer (Windows Server 2008 R2 - 2012 R2).

Syntax
      Get-WindowsFeature [-Name] string[] [-Vhd String] [-ComputerName String] [-Credential PSCredential]
          [-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.

   -ComputerName
       Gets the list of available roles, role services, and features from the specified remote computer.

   -Credential
       Specifies a user account that has access rights to perform this action.
       "Domain\User" or "User@Domain.com"

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

   -Vhd
       The path to an offline VHD. The path can either point to a VHD file, or to a location on which
       the VHD is already mounted by using Deployment Image Servicing and Management (DISM) tools.

Examples

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

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

Get all the Windows features available on the computer:

PS C:\> Get-WindowsFeature

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

Related PowerShell Cmdlets:

Add-WindowsFeature - Install roles, role services, and features.
Install-WindowsFeature - Install roles, role services, or features (Server 2012 R2).
Uninstall-WindowsFeature - Uninstall/remove roles, role services, and features (2012 R2)
Get-WindowsOptionalFeature - Get information about optional features in a Windows image.


 
Copyright © 1999-2021 SS64.com
Some rights reserved