Blog/Exchange

Preparing target MailUsers: GUIDs, x500 and the things that break

The target object every cross-tenant mailbox move depends on: what must match, how to stamp it and how to check it.

ExchangeMigrations

What must be true

AttributeMust equalIf wrong
ExchangeGuidSource mailbox ExchangeGuidUser fails within minutes
ArchiveGuidSource archive GUID, when there is an archiveArchive is not moved or the user fails
x500 addressSource LegacyExchangeDNReplies to old mail and meeting updates bounce
Other x500 addressesAll x500 proxies from the sourceOlder replies bounce
MailboxNone in the targetMove refused
LicenceCross-Tenant User Data Migration assignedMove refused
Open a MailUser in the consoleLearn console · Admin center › Active users

Stamp and check

  1. 1

    Export from the source

    Source

    Export the values for every user in the wave.

    PowerShell · Source
    Get-Mailbox -ResultSize Unlimited | Where-Object { $_.PrimarySmtpAddress -in $wave } |
      Select PrimarySmtpAddress, ExchangeGuid, ArchiveGuid, LegacyExchangeDN,
        @{ n = "X500"; e = { ($_.EmailAddresses | Where-Object { $_ -like "x500:*" }) -join ";" } } |
      Export-Csv .\B07-source.csv -NoTypeInformation
  2. 2

    Stamp in the target

    Target

    Set the GUIDs and add the LegacyExchangeDN and every x500 as proxy addresses.

    PowerShell · Target
    Import-Csv .\B07-source.csv | ForEach-Object {
      $x = @("x500:$($_.LegacyExchangeDN)") + ($_.X500 -split ";" | Where-Object { $_ })
      Set-MailUser $_.TargetUPN -ExchangeGuid $_.ExchangeGuid -ArchiveGuid $_.ArchiveGuid `
        -EmailAddresses @{ add = $x } }
  3. 3

    Read it back

    Target

    Compare the target values with the export before the user goes into a batch.

    PowerShell · Target
    Get-MailUser asha@harbor.com | Select ExchangeGuid, ArchiveGuid, EmailAddresses

    Expected result: GUIDs equal the source export and the x500 list is complete.

Watch out. Group-based licensing can switch the Exchange Online service plan on for everyone in a group and create empty mailboxes. Check it before the wave.

Get the next guide by email

The Cutover is a monthly email with new guides and what we learned on recent waves.

Related

GuideMigrationsExchange

Cross-tenant mailbox migration, end to end

The native Exchange Online path from trust setup to cutover, with every step, the PowerShell behind it and the checks that stop a wave failing on the night.

24 Nov 202618 min read
GuideMigrationsSharePoint & OneDrive

Moving OneDrive between tenants with the native tool

Trust, identity map, the move itself and the one rule that decides whether a user goes native or to a third-party tool.

17 Nov 202614 min read
GuideMigrationsIntune

Device migration between tenants: three paths and when to use each

There is no native button to move an Intune device to another tenant. How to choose between a reset, an Autopilot re-registration and a profile move, and the exact steps for each.

10 Nov 202612 min read