Applies to: Exchange Server 2013

Topic Last Modified: 2012-07-09

Use the Get-ActiveSyncDeviceClass cmdlet to retrieve a list of mobile devices that have connected to the servers running Microsoft Exchange Server 2013 in an organization. The cmdlet returns the mobile device type and model information.

For information about the parameter sets in the Syntax section below, see Syntax.

Syntax

Get-ActiveSyncDeviceClass [-Identity <ActiveSyncDeviceClassIdParameter>] [-DomainController <Fqdn>] [-Filter <String>] [-Organization <OrganizationIdParameter>] [-SortBy <String>]

Examples

EXAMPLE 1

This example returns a list of all devices with the DeviceType of PocketPC.

Copy Code
Get-ActiveSyncDeviceClass -Filter {DeviceType -eq "PocketPC"}

EXAMPLE 2

This example lists all device types within the organization along with a count of the number of devices of each type present.

Copy Code
Get-ActiveSyncDeviceClass | group-object -property DeviceType

Detailed Description

You can use this cmdlet to view a list of mobile phones or devices by type. For example, you can return a list of all Android mobile digital devices in the organization or all Windows Phone devices in the organization.

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 settings" entry in the Clients and Mobile Devices Permissions topic.

Parameters

Parameter Required Type Description

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.

Filter

Optional

System.String

The Filter parameter specifies the attribute by which to filter the data. The following attributes are supported:

  • DeviceType

  • DeviceModel

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.ActiveSyncDeviceClassIdParameter

The Identity parameter specifies the group of devices on which to scope the task.

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

This parameter is reserved for internal Microsoft use.

SortBy

Optional

System.String

The SortBy parameter specifies the attribute by which to sort the results. You can sort by only one attribute at a time. You can sort by the following attributes:

  • DeviceType

  • DeviceModel

The results are sorted in ascending order.

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.