Commands › Exchange Online
Test-MigrationServerAvailability
Test the availability of the target server in preparation to perform cross-forest mailbox moves, migration of on-premises mailboxes to Exchange Online, or to migrate on-premises mailbox data from an IMAP server to Exchange Online mailboxes. For all migration types, the cmdlet attempts to verify the connection settings used to connect to the target server.
Quick start script
# Test-MigrationServerAvailability — 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
Test-MigrationServerAvailability -Autodiscover <SwitchParameter> -Compliance <SwitchParameter> -Credentials <PSCredential> | Format-List
# 3. Export for evidence / drift tracking
Test-MigrationServerAvailability | Export-Clixml .\MigrationServerAvailability-$(Get-Date -Format yyyyMMdd).xml
Syntax — 13 parameter sets
ExchangeRemoteMoveAutodiscover
Test-MigrationServerAvailability -Credentials <PSCredential> -EmailAddress <SmtpAddress> [-Autodiscover] [-ExchangeRemoteMove]
[-Confirm]
[-Partition <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
ExchangeOutlookAnywhereAutodiscover
Test-MigrationServerAvailability -Credentials <PSCredential> -EmailAddress <SmtpAddress> [-Autodiscover] [-ExchangeOutlookAnywhere]
[-AcceptUntrustedCertificates]
[-Confirm]
[-MailboxPermission <MigrationMailboxPermission>]
[-Partition <MailboxIdParameter>]
[-SourceMailboxLegacyDN <String>]
[-TestMailbox <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
PSTImport
Test-MigrationServerAvailability -Credentials <PSCredential> -RemoteServer <Fqdn> [-FilePath <String>] [-PSTImport]
[-Confirm]
[-Partition <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
ExchangeOutlookAnywhere
Test-MigrationServerAvailability -Credentials <PSCredential> -ExchangeServer <String> -RPCProxyServer <Fqdn> [-ExchangeOutlookAnywhere]
[-AcceptUntrustedCertificates]
[-Authentication <AuthenticationMethod>]
[-EmailAddress <SmtpAddress>]
[-MailboxPermission <MigrationMailboxPermission>]
[-TestMailbox <MailboxIdParameter>]
[-SourceMailboxLegacyDN <String>]
[-Confirm]
[-Partition <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
9 more parameter sets — see the parameter table below.
Parameters (28)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.