< Back

Get-CMsmqMessageQueuePath

Sun Jan 12, 2020 9:46 pm

NAME Get-CMsmqMessageQueuePath



SYNOPSIS

Gets the path to an MSMQ message queue.





SYNTAX

Get-CMsmqMessageQueuePath [-Name] <String> [-Private] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The MSMQ APIs expect paths when identifying a queue. This function converts a queue name into its path so that

logic isn't spread across all your scripts.



Private queue paths are constructed differently. If you need to get the path to a private MSMQ, use the `Private`

switch.





PARAMETERS

-Name <String>

The queue's name.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Private [<SwitchParameter>]

Is the queue private?



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

System.String.





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



PS C:\\>Get-CMsmqMessageQueuePath -Name MovieQueue



Returns the path to the `MovieQueue` queue.









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



PS C:\\>Get-CMsmqMessageQueuePath -Name MovieQueue -Private



Returns the path to the private `MovieQueue`. Must be for the critics. Early access for the win!











RELATED LINKS