Commands › Exchange Online
Get-ActiveSyncDeviceStatistics
Retrieve the list of mobile devices configured to synchronize with a specified user's mailbox and return a list of statistics about the mobile devices. **Note**: This cmdlet works best in Exchange 2010. In later versions of Exchange or Exchange Online, use the Get-MobileDeviceStatistics cmdlet instead. If you have scripts that use Get-ActiveSyncDeviceStatistics, update them to use Get-MobileDeviceStatistics.
Quick start script
# Get-ActiveSyncDeviceStatistics — 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
Get-ActiveSyncDeviceStatistics -Identity <ActiveSyncDeviceIdParameter> -Mailbox <MailboxIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Get-ActiveSyncDeviceStatistics | Export-Clixml .\ActiveSyncDeviceStatistics-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
Identity
Get-ActiveSyncDeviceStatistics [-Identity] <ActiveSyncDeviceIdParameter>
[-DomainController <Fqdn>]
[-GetMailboxLog]
[-NotificationEmailAddresses <MultiValuedProperty>]
[-ShowRecoveryPassword]
[<CommonParameters>]
Mailbox
Get-ActiveSyncDeviceStatistics -Mailbox <MailboxIdParameter>
[-DomainController <Fqdn>]
[-GetMailboxLog]
[-NotificationEmailAddresses <MultiValuedProperty>]
[-ShowRecoveryPassword]
[<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.