Commands › Exchange Online

Get-MobileDeviceStatistics

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**: In Exchange Online PowerShell, we recommend that you use the Get-EXOMobileDeviceStatistics cmdlet instead of this cmdlet. For more information, see Connect to Exchange Online PowerShell.

Quick start script

# Get-MobileDeviceStatistics — 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-MobileDeviceStatistics -Identity <MobileDeviceIdParameter> -Mailbox <MailboxIdParameter> | Format-List

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

Syntax — 2 parameter sets

Identity

Get-MobileDeviceStatistics [-Identity] <MobileDeviceIdParameter>
 [-ActiveSync]
 [-DomainController <Fqdn>]
 [-GetMailboxLog]
 [-NotificationEmailAddresses <MultiValuedProperty>]
 [-OWAforDevices]
 [-ShowRecoveryPassword]
 [-RestApi]
 [-UniversalOutlook]
 [-UseCustomRouting]
 [<CommonParameters>]

Mailbox

Get-MobileDeviceStatistics -Mailbox <MailboxIdParameter>
 [-ActiveSync]
 [-DomainController <Fqdn>]
 [-GetMailboxLog]
 [-NotificationEmailAddresses <MultiValuedProperty>]
 [-OWAforDevices]
 [-ShowRecoveryPassword]
 [-RestApi]
 [-UniversalOutlook]
 [-UseCustomRouting]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Identity MobileDeviceIdParameter yes The Identity parameter specifies the mobile device that you want to view. You can use the following values that uniquely identifies the mobile device:
-Mailbox MailboxIdParameter yes The Mailbox parameter filters the results by the user mailbox that's associated with the mobile device. You can use any value that uniquely identifies the mailbox. For example:
-ActiveSync SwitchParameter The ActiveSync switch filters the results by Exchange ActiveSync devices. You don't need to specify a value with this switch.
-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.
-OWAforDevices SwitchParameter The OWAforDevices switch filters the results by devices where Outlook on the web for devices is enabled. You don't need to specify a value with this switch.
-ShowRecoveryPassword SwitchParameter The ShowRecoveryPassword switch specifies whether to return the recovery password for the mobile device as one of the displayed statistics. You don't need to specify a value with this switch.
-RestApi SwitchParameter The RestApi switch filters the results by REST API devices. You don't need to specify a value with this switch.
-UniversalOutlook SwitchParameter The UniversalOutlook switch filters the results by Mail and Calendar devices. You don't need to specify a value with this switch.
-UseCustomRouting SwitchParameter This parameter is available only in the cloud-based service.

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