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.
- $ASPolicyDN = (Get-ActiveSyncMailboxPolicy "Policy Name").Identity.DistinguishedName
- Get-CASMailbox -Filter {ActiveSyncMailboxPolicy -eq $ASPolicyDN}