Edit

Share via


Get-MsmqOutgoingQueue

Gets outgoing message queues.

Syntax

Default (Default)

Get-MsmqOutgoingQueue
    [[-Name] <String[]>]
    [<CommonParameters>]

Description

The Get-MsmqOutgoingQueue cmdlet gets MsmqOutgoingQueue objects. Each object represents a transactional or non-transactional outgoing queue. This cmdlet gets outgoing queues that are local to the computer on which you run the cmdlet. If you do not specify parameters, this cmdlet gets all outgoing queues of the host computer.

Examples

Example 1: Get outgoing message queues

PS C:\> Get-MsmqOutgoingQueue -Name "Order*"

This command gets all outgoing message queues that are local to the current computer that start with the string Order.

Parameters

-Name

Specifies an array of names of queues. The names specify outgoing queues. This parameter supports wildcard characters. The default value is *.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Object