ForEach ($mb in (Get-Mailbox -database DATABASENAME)) { Get-ActiveSyncDeviceStatistics -Mailbox $mb | Select @{Label="Name";Expression={$mb.Name}},DeviceType,DeviceOS,LastSuccessSync}
Replace DATABASENAME with the name of the database you wish to query
This script has been test on Exchange 2010 SP1 and Exchange 2010 SP3.
No comments:
Post a Comment