Simple ActiveSync Device Reporting

Here’s a quick script for reporting back users their ActiveSync partnerships.

$myusers= Get-CASMailbox -resultsize unlimited -Filter {HasActiveSyncDevicePartnership -eq $true} | select samaccountname,Name

$mydevices = foreach($i in $myusers){Get-ActiveSyncDeviceStatistics -Mailbox $i.samaccountname | select-object identity}

$mydevices | Export-Csv ActiveSyncDevices.csv

Leave a comment

Your email address will not be published. Required fields are marked *