< Back
Test-CMsmqMessageQueue
Post
NAME Test-CMsmqMessageQueue
SYNOPSIS
Tests if an MSMQ message queue exists.
SYNTAX
Test-CMsmqMessageQueue [-Name] <String> [-Private] [<CommonParameters>]
DESCRIPTION
Returns `True` if a message queue with name `Name` exists. `False` otherwise.
PARAMETERS
-Name <String>
The queue name.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Private [<SwitchParameter>]
If the queue is private, this switch must be set.
Required? false
Position? named
Default value False
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
System.Boolean.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-CMsmqMessageQueue -Name 'MovieQueue'
Returns `True` if public queue `MovieQueue` exists, `False` otherwise.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Test-CMsmqMessageQueue -Name 'MovieCriticsQueue' -Private
Returns `True` if private queue `MovieCriticsQueue` exists, `False` otherwise.
RELATED LINKS
SYNOPSIS
Tests if an MSMQ message queue exists.
SYNTAX
Test-CMsmqMessageQueue [-Name] <String> [-Private] [<CommonParameters>]
DESCRIPTION
Returns `True` if a message queue with name `Name` exists. `False` otherwise.
PARAMETERS
-Name <String>
The queue name.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Private [<SwitchParameter>]
If the queue is private, this switch must be set.
Required? false
Position? named
Default value False
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
System.Boolean.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-CMsmqMessageQueue -Name 'MovieQueue'
Returns `True` if public queue `MovieQueue` exists, `False` otherwise.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Test-CMsmqMessageQueue -Name 'MovieCriticsQueue' -Private
Returns `True` if private queue `MovieCriticsQueue` exists, `False` otherwise.
RELATED LINKS