Commands › Exchange Online

Get-Queue

Exchange Online ExchangeOnlineManagement Get-*

View configuration information for queues on Mailbox servers or Edge Transport servers.

Quick start script

# Get-Queue — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-Queue | Format-List

# 3. Export for evidence / drift tracking
Get-Queue | Export-Clixml .\Queue-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Identity

Get-Queue [[-Identity] <QueueIdentity>]
 [-BookmarkIndex <Int32>]
 [-BookmarkObject <ExtensibleQueueInfo>]
 [-Exclude <QueueViewerIncludesAndExcludes>]
 [-Include <QueueViewerIncludesAndExcludes>]
 [-IncludeBookmark <Boolean>]
 [-ResultSize <Unlimited>]
 [-ReturnPageInfo <Boolean>]
 [-SearchForward <Boolean>]
 [-SortOrder <QueueViewerSortOrderEntry[]>]
 [<CommonParameters>]

Server

Get-Queue [-Server <ServerIdParameter>]
 [-Filter <String>]
 [-BookmarkIndex <Int32>]
 [-BookmarkObject <ExtensibleQueueInfo>]
 [-Exclude <QueueViewerIncludesAndExcludes>]
 [-Include <QueueViewerIncludesAndExcludes>]
 [-IncludeBookmark <Boolean>]
 [-ResultSize <Unlimited>]
 [-ReturnPageInfo <Boolean>]
 [-SearchForward <Boolean>]
 [-SortOrder <QueueViewerSortOrderEntry[]>]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity QueueIdentity The Identity parameter specifies the queue. Valid input for this parameter uses the syntax Server\\Queue or Queue, for example, Mailbox01\\contoso.com or Unreachable. For details about queue identity, see [Queue...
-BookmarkIndex 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...
-BookmarkObject ExtensibleQueueInfo 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.
-Exclude QueueViewerIncludesAndExcludes The Exclude parameter specifies the types of queues you want to exclude from the results. Valid values for this parameter are:
-Filter String The Filter parameter specifies one or more queues by using OPATH filter syntax. The OPATH filter includes a queue property name followed by a comparison operator and value (for example, `"NextHopDomain -eq...
-Include QueueViewerIncludesAndExcludes The Include parameter specifies the types of queues you want to include the results. Valid values for this parameter are:
-IncludeBookmark 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...
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.
-ReturnPageInfo Boolean The ReturnPageInfo parameter is a hidden parameter. Use it to return information about the total number of results and the index of the first object of the current page. The default value is $false.
-SearchForward Boolean The SearchForward parameter specifies whether to search forward or backward in the result set. The default value is $true. This value causes the result page to be calculated forward from either the start of the...
-Server ServerIdParameter The Server parameter specifies the Exchange server where you want to run this command. You can use any value that uniquely identifies the server. For example:
-SortOrder QueueViewerSortOrderEntry[] 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. Prepend a plus sign (+) symbol to the beginning of the...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.