Commands › Exchange Online

Test-ActiveSyncConnectivity

Exchange Online ExchangeOnlineManagement Test-*

Test connectivity to Microsoft Exchange ActiveSync virtual directories. **Note**: This cmdlet works best in Exchange 2010. In later versions of Exchange, the functionality of this cmdlet is replaced by Managed Availability. For the best results, use the Invoke-MonitoringProbe cmdlet and specify the relevant active monitor probe instead of using this cmdlet.

Quick start script

# Test-ActiveSyncConnectivity — 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-ActiveSyncConnectivity | Format-List

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

Syntax

Test-ActiveSyncConnectivity [[-ClientAccessServer] <ServerIdParameter>] [[-URL] <String>]
 [-AllowUnsecureAccess]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-LightMode]
 [-MailboxCredential <PSCredential>]
 [-MailboxServer <ServerIdParameter>]
 [-MonitoringContext]
 [-MonitoringInstance <String>]
 [-ResetTestAccountCredentials]
 [-Timeout <UInt32>]
 [-TrustAnySSLCertificate]
 [-UseAutodiscoverForClientAccessServer]
 [-WhatIf]
 [<CommonParameters>]

Parameters (15)

ParameterTypeRequiredWhat it controls
-ClientAccessServer ServerIdParameter The ClientAccessServer parameter specifies the Exchange server to test. This server has the Client Access server role installed and is responsible for accepting client connections.
-URL String The URL parameter specifies the URL that's used to connect to the Exchange ActiveSync virtual directory.
-AllowUnsecureAccess SwitchParameter The AllowUnsecureAccess switch allows the test to continue over an unsecured channel that doesn't require Transport Layer Security (TLS). You don't need to specify a value with this switch.
-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 The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-LightMode SwitchParameter The LightMode switch tells the command to perform only a subset of the tests. You don't need to specify a value with this switch.
-MailboxCredential PSCredential The MailboxCredential parameter specifies the mailbox credential to use for a single mailbox test.
-MailboxServer ServerIdParameter The MailboxServer parameter specifies the Exchange Mailbox server that you want to test. This parameter identifies the backend server that accepts proxied connections from the frontend server where clients connect.
-MonitoringContext SwitchParameter The MonitoringContext switch includes the associated monitoring events and performance counters in the results. You don't need to specify a value with this switch.
-MonitoringInstance String The MonitoringInstance parameter specifies an identifier for this task when the test is run from Microsoft System Center Operations Manager (SCOM). This parameter is important because SCOM might run multiple...
-ResetTestAccountCredentials SwitchParameter The ResetTestAccountCredentials switch resets the password for the test account that's used to run this command. You don't need to specify a value with this switch.
-Timeout UInt32 The Timeout parameter specifies the amount of time (in seconds) to wait for a response from the command.
-TrustAnySSLCertificate SwitchParameter The TrustAnySSLCertificate switch allows Exchange to accept certificates from untrusted certification authorities (CAs). You don't need to specify a value with this switch.
-UseAutodiscoverForClientAccessServer SwitchParameter The UseAutodiscoverForClientAccessServer switch specifies whether the test should use the Autodiscover service to locate the Exchange ActiveSync virtual directory. You don't need to specify a value with this switch.
-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.