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[] true false
Iis SwitchParameter Installs IIS. false false
IisHttpRedirection SwitchParameter Installs IIS's HTTP redirection feature. false false
Msmq SwitchParameter Installs MSMQ. false false
MsmqHttpSupport SwitchParameter Installs MSMQ HTTP support. false false
MsmqActiveDirectoryIntegration SwitchParameter Installs MSMQ Active Directory Integration. 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.