Get-MsmqQueue

Get-MsmqQueue

Gets message queues.

構文

Parameter Set: All
Get-MsmqQueue [[-Name] <String[]> ] [-QueueType <QueueType> ] [ <CommonParameters>]

Parameter Set: Journal
Get-MsmqQueue [[-Name] <String[]> ] [-Journal] [-QueueType <QueueType> ] [ <CommonParameters>]

Parameter Set: SubQueue
Get-MsmqQueue [[-Name] <String[]> ] [-QueueType <QueueType> ] [-SubQueue <String> ] [ <CommonParameters>]

詳細説明

The Get-MsmqQueue cmdlet gets an array of MsmqQueue objects. Each MsmqQueue object represents an existing private, public, or system queue. This cmdlet gets queues that are local to the computer where you run the cmdlet. If you do not specify parameters, this cmdlet gets all public, private, and system queues of the host computer.

パラメーター

-Journal

Indicates that this cmdlet retrieves the Journal queue or queues that match the Name parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String[]>

Specifies an array of names of queues. This cmdlet accepts wildcard characters. The default value is *.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-QueueType<QueueType>

Specifies a queue type. このパラメーターに対して使用できる値:

-- PrivateAndPublic. The cmdlet gets public and private queues that match the Name parameter.
-- Private. The cmdlet gets private queues that match the Name parameter.
-- Public. The cmdlet gets public queues that match the Name parameter.
-- SystemDeadLetter. The cmdlet gets non-transactional dead-letter queues that match the Name parameter.
-- SystemJournal. The cmdlet gets system journal queues that match the Name parameter.
-- SystemTransactionalDeadLetter. The cmdlet gets transactional dead-letter queues that match the Name parameter.

The default value is PrivateAndPublic.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SubQueue<String>

Specifies a subqueue object to get for the main queue. If the subqueue does not exist, the cmdlet creates it implicitly. The question mark (?) and asterisk (*) are not interpreted as wildcard characters, but part of the subqueue name.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1

PS C:\> Get-MsmqQueue

Example 2

PS C:\> Get-MsmqQueue -Name "Order*" -QueueType Private

Example 3

PS C:\> Get-MsmqQueue -Name "Order*" -Journal -QueueType Private

Example 4

PS C:\> Get-MsmqQueue -QueueType SystemJournal

関連トピック

Clear-MsmqQueue

New-MsmqQueue

Receive-MsmqQueue

Remove-MsmqQueue

Send-MsmqQueue

Set-MsmqQueue