다음을 통해 공유


ActiveSync devices : Find Mobile Device based on IMEI and all information about the ActiveSync.

Provided below the detailed instructions to perform search query for ActiveSync Devices or Mobile Devices.

Follow the steps mentioned in this article and connect the PowerShell to Exchange Online before proceeding ahead.

Users who has Active Sync Enabled.

 Get-CASMailbox -ResultSize Unlimited | Where-Object {$_.ActiveSyncEnabled -eq "True"} 

Users who has Active Sync Disabled.

 Get-CASMailbox -ResultSize Unlimited | Where-Object {$_.ActiveSyncEnabled -ne "True"} 

Users who has got their email account configured on ActiveSync Devices.

 Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq "True" } | Get-Mailbox | FT DisplayName,UserPrinciPalName,Alias 

Users who have ActiveSync Enabled but have not configured their email account with any ActiveSync device yet.

Get-CASMailbox -ResultSize Unlimited -Filter {(ActiveSyncEnabled -eq "True" -and HasActiveSyncDevicePartnership -eq "True" )} | Get-Mailbox | FT DisplayName,UserPrinciPalName,Alias

Detailed information of devices configured with individual account.

Get-MobileDeviceStatistics -Mailbox Vipin | Select DeviceType,DeviceModel,DeviceUserAgent,DeviceImei,DeviceOS,DeviceOSLanguage,DeviceMobileOperator,DeviceAccessState,FirstSyncTime,LastSyncAttemptTime,LastSuccessSync

Search ActiveSync Device in the Exchange Organization based on IMEI number of the device.

  • Find out the IMEI number of the device, hardcoded with the mobile device.
  • Replace the below IMEI number with the IMEI of your device collected in step 6.

Execute the below command in the PowerShell.

$IMEI = "356150056451977"

$Devices = Get-CASMailbox -ResultSize Unlimited -Filter {(ActiveSyncEnabled -eq "True" -and HasActiveSyncDevicePartnership -eq "True" )} | Get-Mailbox | select Alias

$Data = ForEach ($ID in $Devices) {Get-MobileDeviceStatistics -Mailbox $id.alias} 

$Data | Where-Object {$_.DeviceImei -eq $IMEI } | Select Identity

 

Output should be like below and the Highlighted part (Vipin) is the Mailbox alias of this Mobile device..

APCPR03A001.prod.outlook.com/Microsoft Exchange Hosted Organizations/vipingautam.onmicrosoft.com/vipin/ExchangeActiveSyncDevices/SAMSUNGGTI9082§SEC189AEF79E4C27  

 

To get more info about this device/accout/user, follow the step 5.

To get more info about this Mailbox execute below command.

Get-Mailbox vipin | select DisplayName,PrimarySmtpAddress,UserPrincipalName