PowerShell Logo Small

Get-WindowsFeature



This is the built-in help made by Microsoft for the command 'Get-WindowsFeature', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets information about Windows Server roles, role services, and features that are available for installation and installed on a specified server.

SYNTAX


Get-WindowsFeature [[-Name] <String[]>] [-ComputerName <String>] [-Credential <PSCredential>] [-LogPath <String>] [-Vhd <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-WindowsFeature cmdlet gets information about roles, role services, and features that are both available for installation and already installed on a computer that is
running Windows Server 2012 R2 or an offline virtual hard disk (VHD) that is running Windows Server 2012 R2.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287570
Install-WindowsFeature
Uninstall-WindowsFeature
Enable-ServerManagerStandardUserRemoting
Disable-ServerManagerStandardUserRemoting

REMARKS

<

Examples


EXAMPLE 1

PS C:\> Get-WindowsFeature -ComputerName Server1 -Credential contoso.com\user1



This example gets a list of features that is available and installed on the target computer named Server1. The credentials for user user1 in the Contoso.com domain, a user
who has Administrator rights on Server1, are provided.




EXAMPLE 2

PS C:\> Get-WindowsFeature -Vhd D:\ps-test\vhd1.vhd



This example returns a list of features that is available and installed on the specified offline VHD located at D:\ps-test\vhd1.vhd.




EXAMPLE 3

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



This example returns a list of available and installed features that have a command ID starting with AD or Web.




EXAMPLE 4

PS C:\> Get-WindowsFeature –ComputerName Server01 | Where Installed



This example returns a list of features that is installed on a specified server, Server01.




EXAMPLE 5

PS C:\> Get-WindowsFeature –ComputerName Server01 | Where InstallState -Eq Removed



This example returns a list of features on a specified server, Server01, that have installation files removed from the local side-by-side store, and require an external file
source for installation.