Powershell and activesync policy
Is it possible to set the activesyncmailbox policy with PowerShell? The equivalent gui setting is under the mailbox features tab, Exchange ActiveSync Properties. I would like to allow SC to run a script to change this policy for a user.
February 25th, 2011 11:49am

Ok, I found the first part of my quesiton. This command will do what I want to do. Now I need to write a simple script so SC staff can run the script on a mailbox to set a specific policy. I would have another script to set to another policy. Set-CASMailbox <mailboxid> -ActiveSyncMailboxPolicy (Get-ActiveSyncMailboxPolicy "NewPhone").Identity
Free Windows Admin Tool Kit Click here and download it now
February 25th, 2011 12:07pm

I figured out the rest of it also. Simple scripting I know. I did know how to pass the cli argument to the script. Set-CASMailbox $args[0] -ActiveSyncMailboxPolicy (Get-ActiveSyncMailboxPolicy "NewPhone").Identity
February 26th, 2011 2:24pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics