locked
Powershell and activesync policy RRS feed

  • Question

  • 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.

     

    Friday, February 25, 2011 4:42 PM

Answers

  • 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

    • Marked as answer by The_Messenger Saturday, February 26, 2011 7:18 PM
    Saturday, February 26, 2011 7:18 PM

All replies

  • 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

     

    Friday, February 25, 2011 4:59 PM
  • 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

    • Marked as answer by The_Messenger Saturday, February 26, 2011 7:18 PM
    Saturday, February 26, 2011 7:18 PM