powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-WindowsFeature



NAME
Get-WindowsFeature

SYNOPSIS
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] ] [-logPath ] []


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.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-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.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS
string[]


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


-------- 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.


RELATED LINKS
{Add-WindowsFeature, Remove-WindowsFeature}