Install-WindowsFeature

Installs an optional Windows component/feature.

Syntax

Install-WindowsFeature -Name <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Install-WindowsFeature [-Iis] [-IisHttpRedirection] [-Msmq] [-MsmqHttpSupport] [-MsmqActiveDirectoryIntegration] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

This function will install Windows features. Note that the name of these features can differ between different versions of Windows. Use Get-WindowsFeature to get the list of features on your operating system.

This function is not available on Windows 8/2012.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String[]

The components to enable/install. Feature names are case-sensitive.

true false
Iis SwitchParameter

Installs IIS.

false false False
IisHttpRedirection SwitchParameter

Installs IIS's HTTP redirection feature.

false false False
Msmq SwitchParameter

Installs MSMQ.

false false False
MsmqHttpSupport SwitchParameter

Installs MSMQ HTTP support.

false false False
MsmqActiveDirectoryIntegration SwitchParameter

Installs MSMQ Active Directory Integration.

false false False
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Install-WindowsFeature -Name TelnetClient

Installs Telnet.

EXAMPLE 2

Install-WindowsFeature -Name TelnetClient,TFTP

Installs Telnet and TFTP

EXAMPLE 3

Install-WindowsFeature -Iis

Installs IIS.