SOLVED: How to Apply an ActiveSync Policy to a Specific OU Organizational Unit

If you are using Exchange Management Shell (PowerShell) and need to change the ActiveSync Policy for people in a specific OU using a wildcard (i.e. you want to effect the ActiveSync policy for all users in the ABCDEFG OU you can use a script like this: Get-Mailbox -ResultSize Unlimited | where {$_.OrganizationalUnit -like “ABCD*” }  | Set-CASMailbox -activesyncmailboxpolicy(Get-ActiveSyncMailboxPolicy “<YOUR A.S. POLICY NAME HERE>”).Identity Enjoy.

SOLVED: How to Apply an ActiveSync Policy To A Group

If you need to apply a particular ActiveSync policy to only a particular Distribution Group you can run (and modify) the following script. # Put members of the Dist Group into a dynamic array $allMembers = Get-DistributionGroupMember -Identity ‘<DISTRIBUTION GROUP NAME HERE>‘ # Loop through each person in the allMembers array foreach ($member in $allMembers) { # Set ActiveSync for each member of the array $member | Set-CASMailbox -ActiveSyncEnabled $true # Set ActiveSync Policy for each member of…