Report users assigned to a specific ActiveSync policy

Want to know which users are assigned to a specific ActiveSync policy?  It’s fairly straight forward, but unfortunately it’s not a single command.

You have to first retrieve the policy and assign it to a variable, then you can filter the Get-CASMailbox cmdlet based on that policy.  This will give you a list of all of the mailboxes that are assigned to that policy that you can use for additional processing or reporting purposes.

  1. $ASPolicyDN = (Get-ActiveSyncMailboxPolicy "Policy Name").Identity.DistinguishedName
  2. Get-CASMailbox -Filter {ActiveSyncMailboxPolicy -eq $ASPolicyDN}
This entry was posted in Exchange 2007, PowerShell, System Administration. Bookmark the permalink.