Commands › Exchange Online

Get-ActiveSyncDevice

Exchange Online ExchangeOnlineManagement Get-*

Retrieve the list of devices in your organization that have active Exchange ActiveSync partnerships. **Note**: In Exchange 2013 or later, use the Get-MobileDevice cmdlet instead. If you have scripts that use Get-ActiveSyncDevice, update them to use Get-MobileDevice.

Quick start script

# Get-ActiveSyncDevice — 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-ActiveSyncDevice -Mailbox <MailboxIdParameter> | Format-List

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

Syntax — 2 parameter sets

Mailbox

Get-ActiveSyncDevice -Mailbox <MailboxIdParameter>
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-Monitoring]
 [<CommonParameters>]

Identity

Get-ActiveSyncDevice [[-Identity] <ActiveSyncDeviceIdParameter>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-Monitoring]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Identity ActiveSyncDeviceIdParameter The Identity parameter specifies the ActiveSync device that you want to view. You can use any value that uniquely identifies the device. For example:
-Mailbox MailboxIdParameter yes The Mailbox parameter specifies the mailbox that has the associated ActiveSync device that you want to view. You can use any value that uniquely identifies the mailbox. For example:
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-Monitoring SwitchParameter This parameter is available only in on-premises Exchange.
-OrganizationalUnit OrganizationalUnitIdParameter The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an...
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.
-SortBy String The SortBy parameter specifies the property to sort the results by. You can sort by only one property at a time. The results are sorted in ascending order.

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