Uninstall-WindowsFeature

Uninstalls optional Windows components/features.

Syntax

Uninstall-WindowsFeature -Name <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Uninstall-WindowsFeature [-Iis] [-IisHttpRedirection] [-Msmq] [-MsmqHttpSupport] [-MsmqActiveDirectoryIntegration] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

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.

Related Commands

Parameters

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 Get-WindowsFeature.

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.

EXAMPLE 1

Uninstall-WindowsFeature -Name TelnetClient,TFTP

Uninstalls Telnet and TFTP.

EXAMPLE 2

Uninstall-WindowsFeature -Iis

Uninstalls IIS.