< Back

Uninstall-CWindowsFeature

Sun Jan 12, 2020 11:45 pm

NAME Uninstall-CWindowsFeature



SYNOPSIS

Uninstalls optional Windows components/features.





SYNTAX

Uninstall-CWindowsFeature -Name <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]



Uninstall-CWindowsFeature [-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.**





PARAMETERS

-Name <String[]>

The names of the components to uninstall/disable. Feature names are case-sensitive. To get a list, run

`Get-CWindowsFeature`.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Iis [<SwitchParameter>]

Uninstalls IIS.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-IisHttpRedirection [<SwitchParameter>]

Uninstalls IIS's HTTP redirection feature.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Msmq [<SwitchParameter>]

Uninstalls MSMQ.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-MsmqHttpSupport [<SwitchParameter>]

Uninstalls MSMQ HTTP support.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-MsmqActiveDirectoryIntegration [<SwitchParameter>]

Uninstalls MSMQ Active Directory Integration.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Uninstall-CWindowsFeature -Name TelnetClient,TFTP



Uninstalls Telnet and TFTP.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Uninstall-CWindowsFeature -Iis



Uninstalls IIS.











RELATED LINKS

Get-CWindowsFeature

Install-WindowsService

Test-WindowsService