Commands › Exchange Online
New-MigrationEndpoint
Configure the connection settings for cross-forests moves, remote move migrations, cutover or staged Exchange migrations, IMAP migrations, and Google Workspace (formerly G Suite) migrations.
Quick start script
# New-MigrationEndpoint — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-MigrationEndpoint
$before | Format-List
# 3. Make the change (dry run first)
New-MigrationEndpoint -Name <String> -Autodiscover <SwitchParameter> -Compliance <SwitchParameter> -WhatIf
New-MigrationEndpoint -Name <String> -Autodiscover <SwitchParameter> -Compliance <SwitchParameter>
# 4. Verify and diff
$after = Get-MigrationEndpoint
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 13 parameter sets
ExchangeRemoteMoveAutoDiscover
New-MigrationEndpoint -Name <String> -Credentials <PSCredential> -EmailAddress <SmtpAddress>
[-Autodiscover]
[-ExchangeRemoteMove]
[-Confirm]
[-DomainController <Fqdn>]
[-MaxConcurrentIncrementalSyncs <Unlimited>]
[-MaxConcurrentMigrations <Unlimited>]
[-Partition <MailboxIdParameter>]
[-SkipVerification]
[-WhatIf]
[<CommonParameters>]
ExchangeOutlookAnywhereAutoDiscover
New-MigrationEndpoint -Name <String> -Credentials <PSCredential> -EmailAddress <SmtpAddress>
[-Autodiscover]
[-ExchangeOutlookAnywhere]
[-AcceptUntrustedCertificates]
[-Confirm]
[-DomainController <Fqdn>]
[-MaxConcurrentIncrementalSyncs <Unlimited>]
[-MaxConcurrentMigrations <Unlimited>]
[-Partition <MailboxIdParameter>]
[-SkipVerification]
[-SourceMailboxLegacyDN <String>]
[-TestMailbox <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
ExchangeOutlookAnywhere
New-MigrationEndpoint -Name <String> -Credentials <PSCredential>
[-EmailAddress <SmtpAddress>]
[-ExchangeOutlookAnywhere]
[-ExchangeServer <String>]
[-AcceptUntrustedCertificates]
[-Authentication <AuthenticationMethod>]
[-Confirm]
[-DomainController <Fqdn>]
[-MailboxPermission <MigrationMailboxPermission>]
[-MaxConcurrentIncrementalSyncs <Unlimited>]
[-MaxConcurrentMigrations <Unlimited>]
[-NspiServer <String>]
[-Partition <MailboxIdParameter>]
[-RpcProxyServer <Fqdn>]
[-SkipVerification]
[-SourceMailboxLegacyDN <String>]
[-TestMailbox <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
ExchangeRemoteMove
New-MigrationEndpoint -Name <String> -RemoteServer <Fqdn>
[-Credentials <PSCredential>]
[-ExchangeRemoteMove]
[-ApplicationId <String>]
[-AppSecretKeyVaultUrl <String>]
[-Confirm]
[-DomainController <Fqdn>]
[-MaxConcurrentIncrementalSyncs <Unlimited>]
[-MaxConcurrentMigrations <Unlimited>]
[-Partition <MailboxIdParameter>]
[-RemoteTenant <String>]
[-SkipVerification]
[-WhatIf]
[<CommonParameters>]
9 more parameter sets — see the parameter table below.
Parameters (37)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.