Installs an optional Windows component/feature.
Install-WindowsFeature -Name <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Install-WindowsFeature [-Iis] [-IisHttpRedirection] [-Msmq] [-MsmqHttpSupport] [-MsmqActiveDirectoryIntegration] [-WhatIf] [-Confirm] [<CommonParameters>]
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.
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 . |
Install-WindowsFeature -Name TelnetClient
Installs Telnet.
Install-WindowsFeature -Name TelnetClient,TFTP
Installs Telnet and TFTP
Install-WindowsFeature -Iis
Installs IIS.