Commands › Exchange Online

Test-EdgeSynchronization

Exchange Online ExchangeOnlineManagement Test-*

Diagnose whether the subscribed Edge Transport servers have a current and accurate synchronization status.

Quick start script

# Test-EdgeSynchronization — 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-EdgeSynchronization -VerifyRecipient <ProxyAddress> | Format-List

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

Syntax — 2 parameter sets

SingleValidation

Test-EdgeSynchronization -VerifyRecipient <ProxyAddress>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Default

Test-EdgeSynchronization [-ExcludeRecipientTest]
 [-FullCompareMode]
 [-MaxReportSize <Unlimited>]
 [-MonitoringContext <Boolean>]
 [-TargetServer <String>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-VerifyRecipient ProxyAddress yes The VerifyRecipient parameter specifies a single recipient with which to verify the synchronization status. You identify the recipient by specifying a proxy address assigned to the recipient. The proxy address is the...
-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...
-ExcludeRecipientTest SwitchParameter The ExcludeRecipientTest switch specifies whether to exclude validation of recipient data synchronization. You don't need to specify a value with this switch.
-FullCompareMode SwitchParameter The FullCompareMode switch specifies whether a full comparison of the configuration data between Active Directory and AD LDS instance on the target Edge Transport server is performed. You don't need to specify a...
-MaxReportSize Unlimited The MaxReportSize parameter specifies the total number of objects and properties listed in the results. The results output by this command include a list of all out-of-sync objects and properties in both AD LDS and...
-MonitoringContext Boolean The MonitoringContext parameter specifies whether to include the associated monitoring events and performance counters in the results. Valid values are:
-TargetServer String The TargetServer parameter specifies an Edge Transport server to initiate edge synchronization with. If omitted, all Edge Transport servers are synchronized.
-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.