Commands › Exchange Online

Get-ActiveSyncDeviceStatistics

Exchange Online ExchangeOnlineManagement Get-*

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)

ParameterTypeRequiredWhat it controls
-Identity ActiveSyncDeviceIdParameter yes The Identity parameter specifies the user's device ID. If the Mailbox parameter is specified, the Identity parameter is disabled.
-Mailbox MailboxIdParameter yes The Mailbox parameter specifies the user mailbox for which you want to retrieve the mobile phone statistics. You can use any value that uniquely identifies the mailbox. For example:
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-GetMailboxLog SwitchParameter The GetMailboxLog switch specifies whether to send the mobile device statistics to the email addresses that are specified by the NotificationEmailAddresses parameter. You don't need to specify a value with this switch.
-NotificationEmailAddresses MultiValuedProperty The NotificationEmailAddresses parameter specifies a comma-separated list of email addresses to receive the mobile device statistics when you use the GetMailboxLog switch.
-ShowRecoveryPassword SwitchParameter The ShowRecoveryPassword parameter specifies whether to return the recovery password for the mobile phone as one of the displayed statistics. If this parameter is set to $true, the command returns the recovery...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.