February 12, 2013

Exchange 2010 - PowerShell - ActiveSync Devices

Get mailboxes with ActiveSync devices:
Get-CASMailbox -ResultSize unlimited -filter {HasActivesyncDevicePartnership -eq $True}

To obtain ActiveSync statistics run Get-ActiveSyncDeviceStatistics cmdlet:
Get-CASMailbox -ResultSize unlimited -filter {HasActivesyncDevicePartnership -eq $True}  | foreach {Get-ActiveSyncDeviceStatistics -Mailbox $_.identity} | Select-Object Identity, DeviceOS, DeviceType, DeviceID

To determine ActiveSync devices with iOS run cmdlet with next syntax:
Get-CASMailbox -ResultSize unlimited -filter {HasActivesyncDevicePartnership -eq $True} | foreach {Get-ActiveSyncDeviceStatistics -Mailbox $_.identity} | where {$_.DeviceOS -match "iOS"} | Select-Object Identity, DeviceOS, DeviceType, DeviceID

No comments:

Post a Comment