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[] | 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 . |
Install-WindowsFeature -Name TelnetClient
Installs Telnet.
Install-WindowsFeature -Name TelnetClient,TFTP
Installs Telnet and TFTP
Install-WindowsFeature -Iis
Installs IIS.