none
simple powershell script RRS feed

  • Question

  • How do I write this command as a script so staff can type the scriptname and mailbox name from powershell.

    This is the command I want to run

    Set-CASMailbox <mailboxid> -ActiveSyncMailboxPolicy (Get-ActiveSyncMailboxPolicy "NewPhone").Identity

    This will also help me learn some basic scripting with powershell.  :)

    Saturday, February 26, 2011 3:51 PM

Answers

  • This is what I was looking for.

     

    Set-CASMailbox $args[0] -ActiveSyncMailboxPolicy (Get-ActiveSyncMailboxPolicy

    "NewPhone").Identity

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