Commands › Exchange Online

Get-MailboxExportRequest

Exchange Online ExchangeOnlineManagement Get-*

View the detailed status of an ongoing export request that was initiated by using the New-MailboxExportRequest cmdlet. To use this cmdlet, you need to add the Mailbox Import Export role to a role group (for example, to the Organization Management role group). For more information, see Add a role to a role group.

Quick start script

# Get-MailboxExportRequest — 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-MailboxExportRequest | Format-List

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

Syntax — 3 parameter sets

Identity

Get-MailboxExportRequest [[-Identity] <MailboxExportRequestIdParameter>]
 [-DomainController <Fqdn>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

MailboxFiltering

Get-MailboxExportRequest [-Mailbox <MailboxOrMailUserIdParameter>]
 [-BatchName <String>]
 [-Database <DatabaseIdParameter>]
 [-DomainController <Fqdn>]
 [-HighPriority <Boolean>]
 [-Name <String>]
 [-ResultSize <Unlimited>]
 [-Status <RequestStatus>]
 [-Suspend <Boolean>]
 [-RequestQueue <DatabaseIdParameter>]
 [<CommonParameters>]

MailboxLocationFiltering

Get-MailboxExportRequest [-Mailbox <MailboxLocationIdParameter>]
 [-BatchName <String>]
 [-Database <DatabaseIdParameter>]
 [-DomainController <Fqdn>]
 [-HighPriority <Boolean>]
 [-Name <String>]
 [-ResultSize <Unlimited>]
 [-Status <RequestStatus>]
 [-Suspend <Boolean>]
 [-RequestQueue <DatabaseIdParameter>]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Identity MailboxExportRequestIdParameter The Identity parameter specifies the identity of the export request. By default, export requests are named `<alias>\MailboxExportX` (where X = 0-9). If you specified a name for the export request when the request was...
-BatchName String The BatchName parameter specifies the name given to a batch export request.
-Database DatabaseIdParameter The Database parameter specifies the database in which the user's mailbox or archive resides. You can use any value that uniquely identifies the database. For example:
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-HighPriority Boolean The HighPriority parameter filters the results based on the Priority value that was assigned when the request was created. Valid input for this parameter is $true or $false. Here's how these values filter the results:
-Mailbox MailboxOrMailUserIdParameter The Mailbox parameter filters the results by the source mailbox where the contents are being exported from.
-Name String The Name parameter specifies that export requests that have the specified name are returned.
-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.
-Status RequestStatus The Status parameter filters the results based on status. You can use the following values:
-Suspend Boolean The Suspend parameter specifies whether to return requests that have been suspended. Valid input for this parameter is $true or $false.
-RequestQueue DatabaseIdParameter The RequestQueue parameter identifies the request based on the mailbox database where the request is being run. You can use any value that uniquely identifies the database. For example:

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