Saturday, August 12, 2017

Exchange Cutover Migration Endpoints. PowerShell configuration samples

# Exchange Server migration account credentials
$cred = Get-Credential

# If migration account is not hidden from GAL and you are going to use Autodiscover
$TSMA = Test-MigrationServerAvailability -ExchangeOutlookAnywhere -Autodiscover -EmailAddress administrator@contoso.com -Credentials $cred

# If migration account is hidden from GAL and you are going to use Autodiscover
$TSMA = Test-MigrationServerAvailability -ExchangeOutlookAnywhere -Autodiscover -EmailAddress administrator@contoso.com -Credentials $cred -SourceMailboxLegacyDN "/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=3fd752ef466144ff83d418e6060da2
26-Stani"

# If migration account is not hidden from GAL and you are not going to use Autodiscover
$TSMA = Test-MigrationServerAvailability -ExchangeOutlookAnywhere -EmailAddress administrator@contoso.com -Credentials $cred -RPCProxyServer "us.exg7.exghost.com" -ExchangeServer "ac2b1533-71c9-48e3-9a58-8f7ce004cf01@contoso.com"

# If migration account is hidden from GAL and you are not going to use Autodiscover
$TSMA = Test-MigrationServerAvailability -ExchangeOutlookAnywhere -EmailAddress administrator@contoso.com -Credentials $cred -RPCProxyServer "us.exg7.exghost.com" -ExchangeServer "ac2b1533-71c9-48e3-9a58-8f7ce004cf01@contoso.com" -SourceMailboxLegacyDN "/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=3fd752ef466144ff83d418e6060da2
26-Stani"

New-MigrationEndpoint -ExchangeOutlookAnywhere -Name CutoverEndpoint -ConnectionSettings $TSMA.ConnectionSettings

where:
  • the -RPCProxyServer parameter specifies the FQDN of the RPC proxy server for the on-premises Exchange server (ExternalHostname); 
  • the -ExchangeServer parameter specifies the FQDN of the on-premises Exchange server (InternalHostname). 
Get-OutlookAnywhere | fl ExternalHostname,InternalHostname

PowerShell command above gives you right values (assuming that Outlook Anywhere is configured correctly)

Question: Why will you choose not to use Autodiscover for migration endpoint?

Answer: After DNS MX and A/CNAME (autodiscover.contoso.com) records switch-over to Exchange Online you can continue mailbox items sync from source Exchange platform. If you use "autodiscover" method for Cutover endpoint then:

  • Per Microsoft "Autodiscover service will be used to connect to each user mailbox in the migration batch"
  • you will be pointed (after DNS switch-over autodiscover.contoso.com to autodiscover.outlook.com) to destination Exchange Online platform instead of source Exchange Server and mailbox sync could be broken.
References: