Friday, April 29, 2011

Set Exchange Mailbox ActiveSync Policy for AD Group Members

One unit I support wanted a few AD groups to receive a specific ActiveSync security policy. Below is the script that quickly got it done.

#AD Setting for Multi Domain Forest
Set-ADServerSettings -ViewEntireForest $true

$Depts = "Group1","Group2","Group3"

ForEach ($Dept in $Depts)
(get-group $Dept).members | Set-CASMailbox –ActiveSyncMailboxPolicy "EDU Security for Mobile Devices"

No comments: