Get-Queue
Applies to: Exchange Server 2010
Topic Last Modified: 2011-03-19
Use the Get-Queue cmdlet to view configuration information for queues on a computer that has the Hub Transport server role or the Edge Transport server role installed.
Get-Queue [-BookmarkIndex <Int32>] [-BookmarkObject <QueueInfo>] [-Filter <String>] [-IncludeBookmark <$true | $false>] [-ResultSize <Unlimited>] [-ReturnPageInfo <$true | $false>] [-SearchForward <$true | $false>] [-Server <ServerIdParameter>] [-SortOrder <SortOrderEntry[]>]
Get-Queue [-Identity <QueueIdentity>] [-BookmarkIndex <Int32>] [-BookmarkObject <QueueInfo>] [-IncludeBookmark <$true | $false>] [-ResultSize <Unlimited>] [-ReturnPageInfo <$true | $false>] [-SearchForward <$true | $false>] [-SortOrder <SortOrderEntry[]>]
| Parameter | Required | Type | Description |
|---|---|---|---|
|
BookmarkIndex |
Optional |
System.Int32 |
The BookmarkIndex parameter specifies the position in the result set where the displayed results start. The value of this parameter is a 1-based index in the total result set. The BookmarkIndex parameter can't be used with the BookmarkObject parameter. |
|
BookmarkObject |
Optional |
Microsoft.Exchange.Data.QueueViewer.QueueInfo |
The BookmarkObject parameter specifies the object in the result set where the displayed results start. The BookmarkObject parameter can't be used with the BookmarkIndex parameter. |
|
Filter |
Optional |
System.String |
The Filter parameter requires an expression that specifies the property value criteria for the queues that you want to display. The expression includes a property name followed by a comparison operator and value. The following queue properties are valid for the Filter parameter:
You can specify multiple criteria by using the AND comparison operator. Property values that aren't expressed as an integer must be enclosed in quotation marks ("). |
|
Identity |
Optional |
Microsoft.Exchange.Data.QueueViewer.QueueIdentity |
The Identity parameter specifies the identity of the queue that contains the messages that you want to display. Enter the queue identity in the form of Server\destination, where destination is a remote domain, Mailbox server, or persistent queue name. |
|
IncludeBookmark |
Optional |
System.Boolean |
The IncludeBookmark parameter specifies whether to include the bookmark object when the query results are displayed. The IncludeBookmark parameter is valid when it's used with the BookmarkObject or BookmarkIndex parameter. If you don't specify a value for the IncludeBookmark parameter, the default value of |
|
ResultSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
The ResultSize parameter specifies the total number of items to display in the result set. The default ResultSize parameter value is set to 1000. The ResultSize parameter supports an unlimited number of results, but Microsoft Exchange limits the result set to 250,000. |
|
ReturnPageInfo |
Optional |
System.Boolean |
The ReturnPageInfo parameter is a hidden parameter. This parameter returns information about the total number of results and the index of the first object of the current page. The default value is |
|
SearchForward |
Optional |
System.Boolean |
The SearchForward parameter specifies whether to search forward or backward in the result set. The default value is |
|
Server |
Optional |
Microsoft.Exchange.Configuration.Tasks.ServerIdParameter |
The Server parameter specifies the name of the server to connect to by using a remote procedure call (RPC) that contains the queues that hold the messages that you want to display. Enter the server name as a host name or a fully qualified domain name (FQDN). If the Server parameter isn't used, the local server is queried. |
|
SortOrder |
Optional |
Microsoft.Exchange.Configuration.Tasks.SortOrderEntry[] |
The SortOrder parameter specifies an array of message properties used to control the sort order of the result set. Separate each property by using a comma. Append a + symbol to the beginning of the property name to display the results in ascending order. Append a - symbol to the beginning of the property name to display the results in descending order. If you don't specify a sort order, the result set is displayed in ascending order by QueueIdentity. |
The Get-Queue cmdlet displays information about existing queues on a Hub Transport server or an Edge Transport server.
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Queues" entry in the Transport Permissions topic.
This example displays detailed information for all queues on the Edge Transport server on which the command is run.
Get-Queue | Format-List
This example lists the queues that contain more than 100 messages.
Get-Queue -Filter {MessageCount -gt 100}
This example displays detailed information for a specific queue that exists on the server Server1.
Get-Queue -Identity Server1\contoso.com | Format-List
