Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-11-16

Use the Get-ActiveSyncDeviceStatistics cmdlet to do the following:

Syntax

Get-ActiveSyncDeviceStatistics -Identity <ActiveSyncDeviceIdParameter> [-DomainController <Fqdn>] [-GetMailboxLog <SwitchParameter>] [-NotificationEmailAddresses <MultiValuedProperty>] [-ShowRecoveryPassword <SwitchParameter>]
Get-ActiveSyncDeviceStatistics -Mailbox <MailboxIdParameter> [-DomainController <Fqdn>] [-GetMailboxLog <SwitchParameter>] [-NotificationEmailAddresses <MultiValuedProperty>] [-ShowRecoveryPassword <SwitchParameter>]

Detailed Description

The Get-ActiveSyncDeviceStatistics cmdlet returns a list of statistics about each mobile phone. 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 "Exchange ActiveSync user settings" entry in the Client Access Permissions topic.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.ActiveSyncDeviceIdParameter

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.

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 e-mail to the administrator running the task. If the parameter is set to $true, the command sends the mailbox logs via e-mail to the administrator running the task. The default value of this parameter is $false.

NotificationEmailAddresses

Optional

Microsoft.Exchange.Data.MultiValuedProperty

The NotificationEmailAddresses parameter specifies an optional list of comma-separated aliases or e-mail addresses where the mailbox logs are sent. If the GetMailboxLog parameter is set to $false, this parameter is ignored.

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 $true, the command returns the recovery password for the mobile phone as one of the displayed statistics.

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.

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-ActiveSyncDeviceStatistics -Identity TonySmith

EXAMPLE 2

This example uses the Get-CASMailbox cmdlet to determine who in the organization has a Microsoft Exchange ActiveSync device. For each 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-ActiveSyncDeviceStatistics -Mailbox $_.Identity} 

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-ActiveSyncDeviceStatistics -Mailbox TonySmith -GetMailboxLog $true -NotificationEmailAddresses "admin@contoso.com"