Applies to: Exchange Server 2013

Topic Last Modified: 2012-07-04

Use the Get-ActiveSyncDevice cmdlet to retrieve the list of devices in your organization that have active Microsoft Exchange ActiveSync partnerships.

Warning:
The Get-ActiveSyncDevice cmdlet will be removed in a future version of Exchange. Use the Get-MobileDevice cmdlet instead. If you have any scripts that use the Get-ActiveSyncDevice cmdlet, update them to use the Get-MobileDevice cmdlet.

Syntax

Get-ActiveSyncDevice -Mailbox <MailboxIdParameter> <COMMON PARAMETERS>
Get-ActiveSyncDevice [-Identity <ActiveSyncDeviceIdParameter>] <COMMON PARAMETERS>
COMMON PARAMETERS: [-DomainController <Fqdn>] [-Filter <String>] [-Organization <OrganizationIdParameter>] [-OrganizationalUnit <OrganizationalUnitIdParameter>] [-ResultSize <Unlimited>] [-SortBy <String>]

Examples

EXAMPLE 1

This example returns all the Exchange ActiveSync mobile devices that Tony Smith has used that are associated with his mailbox.

Copy Code
Get-ActiveSyncDevice -Identity "TonySmith"

EXAMPLE 2

This example returns all the Exchange ActiveSync mobile devices that Tony Smith has used that are associated with his mailbox.

Copy Code
Get-ActiveSyncDevice -Mailbox "Redmond\TonySmith" 

Detailed Description

The Get-ActiveSyncDevice cmdlet returns identification, configuration, and status information for each device.

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

Parameters

Parameter Required Type Description

Mailbox

Required

Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter

The Mailbox parameter specifies the user whose mobile devices you want to retrieve.

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 a set of attributes used to filter the list of returned mobile devices.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.ActiveSyncDeviceIdParameter

The Identity parameter specifies the device to retrieve. One of the following values is used to identify a mobile device in Active Directory:

  • GUID

  • DeviceIdentity

  • Multi-TenantID

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

The Organization parameter is reserved for internal Microsoft use.

OrganizationalUnit

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationalUnitIdParameter

The OrganizationalUnit parameter specifies the organizational unit (OU) where the task is run.

ResultSize

Optional

Microsoft.Exchange.Data.Unlimited

The ResultSize parameter specifies the maximum number of results to return.

SortBy

Optional

System.String

The SortBy parameter specifies the attribute to sort by.

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.