Commands › Exchange Online
Test-EcpConnectivity
Test connectivity to Exchange Control Panel (ECP) 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-EcpConnectivity — 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-EcpConnectivity | Format-List
# 3. Export for evidence / drift tracking
Test-EcpConnectivity | Export-Clixml .\EcpConnectivity-$(Get-Date -Format yyyyMMdd).xml
Syntax
Test-EcpConnectivity [[-ClientAccessServer] <ServerIdParameter>]
[-Confirm]
[-DomainController <Fqdn>]
[-LightMode]
[-MailboxServer <ServerIdParameter>]
[-MonitoringContext]
[-ResetTestAccountCredentials]
[-RSTEndpoint <String>]
[-TestType <OwaConnectivityTestType>]
[-Timeout <UInt32>]
[-TrustAnySSLCertificate]
[-VirtualDirectoryName <String>]
[-WhatIf]
[<CommonParameters>]
Parameters (13)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.