Applies to: Exchange Server 2013
Topic Last Modified: 2012-07-04
Use the Get-MobileDeviceStatistics cmdlet to 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.
For information about the parameter sets in the Syntax section below, see Syntax.
Syntax
Get-MobileDeviceStatistics -Mailbox
<MailboxIdParameter> <COMMON PARAMETERS>
|
Get-MobileDeviceStatistics -Identity
<MobileDeviceIdParameter> <COMMON PARAMETERS>
|
COMMON PARAMETERS: [-ActiveSync <SwitchParameter>]
[-DomainController <Fqdn>] [-GetMailboxLog
<SwitchParameter>] [-NotificationEmailAddresses
<MultiValuedProperty>] [-OWAMobileApp
<SwitchParameter>] [-ShowRecoveryPassword
<SwitchParameter>]
|
Examples
EXAMPLE 1
This example retrieves the statistics for the mobile phone configured to synchronize with the mailbox that belongs to the user Tony Smith.
Copy Code | |
---|---|
Get-MobileDeviceStatistics -Identity TonySmith |
EXAMPLE 2
This example uses the Get-CASMailbox cmdlet to determine who in the organization has a Microsoft Exchange ActiveSync mobile device. For each mobile device, the Exchange ActiveSync device statistics are retrieved.
Copy Code | |
---|---|
$UserList = Get-CASMailbox -Filter {hasactivesyncdevicepartnership -eq $true -and -not displayname -like "CAS_{*"} | Get-Mailbox $UserList | foreach { Get-MobileDeviceStatistics -Mailbox $_} |
EXAMPLE 3
This example retrieves the statistics for the mobile phone configured to synchronize with the mailbox that belongs to the user Tony Smith. It also outputs the Exchange ActiveSync log file and sends it to the System Administrator at admin@contoso.com.
Copy Code | |
---|---|
Get-MobileDeviceStatistics -Mailbox TonySmith -GetMailboxLog $true -NotificationEmailAddresses "admin@contoso.com" |
Detailed Description
The Get-MobileDeviceStatistics cmdlet returns a list of statistics about each mobile device. Additionally, it allows you to retrieve logs and send those logs to a recipient for troubleshooting purposes.
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Mobile Device user settings" entry in the Clients and Mobile Devices Permissions topic.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MobileDeviceIdParameter |
The Identity parameter specifies the user's device ID. If the Mailbox parameter is specified, the Identity parameter is disabled. |
Mailbox |
Required |
Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter |
The Mailbox parameter specifies the user mailbox for which you want to retrieve the mobile phone statistics. |
ActiveSync |
Optional |
System.Management.Automation.SwitchParameter |
The ActiveSync switch specifies whether to return statistics for Microsoft Exchange ActiveSync or other mobile device synchronization. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory. |
GetMailboxLog |
Optional |
System.Management.Automation.SwitchParameter |
The GetMailboxLog parameter specifies whether to send the
mailbox logs via email to the administrator running the task. If
the parameter is set to |
NotificationEmailAddresses |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
The NotificationEmailAddresses parameter specifies an
optional list of comma-separated aliases or email addresses where
the mailbox logs are sent. If the GetMailboxLog parameter is
set to |
OWAMobileApp |
Optional |
System.Management.Automation.SwitchParameter |
This parameter is reserved for future use. |
ShowRecoveryPassword |
Optional |
System.Management.Automation.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
|
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.