Uninstalls optional Windows components/features.
Uninstall-WindowsFeature -Name <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Uninstall-WindowsFeature [-Iis] [-IisHttpRedirection] [-Msmq] [-MsmqHttpSupport] [-MsmqActiveDirectoryIntegration] [-WhatIf] [-Confirm] [<CommonParameters>]
The names of the features are different on different versions of Windows. For a list, run Get-WindowsService
.
Feature names are case-sensitive. If a feature is already uninstalled, nothing happens.
This function is not available on Windows 8/2012.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String[] | The names of the components to uninstall/disable. Feature names are case-sensitive. To get a list, run |
true | false | |
Iis | SwitchParameter | Uninstalls IIS. |
false | false | False |
IisHttpRedirection | SwitchParameter | Uninstalls IIS's HTTP redirection feature. |
false | false | False |
Msmq | SwitchParameter | Uninstalls MSMQ. |
false | false | False |
MsmqHttpSupport | SwitchParameter | Uninstalls MSMQ HTTP support. |
false | false | False |
MsmqActiveDirectoryIntegration | SwitchParameter | Uninstalls 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 . |
Uninstall-WindowsFeature -Name TelnetClient,TFTP
Uninstalls Telnet and TFTP.
Uninstall-WindowsFeature -Iis
Uninstalls IIS.