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.

Leave a Reply