< Back

Uninstall-CMsmqMessageQueue

Sun Jan 12, 2020 11:41 pm

NAME Uninstall-CMsmqMessageQueue



SYNOPSIS

Removes an MSMQ queue.





SYNTAX

Uninstall-CMsmqMessageQueue [-Name] <String> [-Private] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Removes/deletes an existing MSMQ queue by name. If a queue with that name doesn't exist, nothing happens.





PARAMETERS

-Name <String>

The name of the queue to remove.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Private [<SwitchParameter>]

Is this a private queue?



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-CMsmqMessageQueue -Name MovieQueue



Removes the public `MovieQueue` queue.









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



PS C:\\>Uninstall-CMsmqMessageQueue -Name MovieCriticsQueue -Private



Removes the private `MovieCriticsQueue` queue.











RELATED LINKS