Commands › Exchange Online

Export-MigrationReport

Exchange Online ExchangeOnlineManagement Export-*

The Export-MigrationReport is used by the Exchange migration process to enable an administrator to download a CSV file that contains migration errors for a selected migration batch. This cmdlet isn't run by an administrator in Windows PowerShell.

Quick start script

# Export-MigrationReport — 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
Export-MigrationReport -Identity <MigrationReportIdParameter> -CsvStream <Stream> -RowCount <Int32> | Format-List

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

Syntax — 2 parameter sets

StreamBased

Export-MigrationReport [-Identity] <MigrationReportIdParameter> -CsvStream <Stream>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Partition <MailboxIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

Paged

Export-MigrationReport [-Identity] <MigrationReportIdParameter> -RowCount <Int32> -StartingRowIndex <Int32>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Partition <MailboxIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Identity MigrationReportIdParameter yes This parameter is reserved for internal Microsoft use.
-CsvStream Stream yes This parameter is reserved for internal Microsoft use.
-RowCount Int32 yes This parameter is reserved for internal Microsoft use.
-StartingRowIndex Int32 yes This parameter is reserved for internal Microsoft use.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Partition MailboxIdParameter This parameter is available only in the cloud-based service.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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