none
Disable/Delete all mailboxes for AD from powershell RRS feed

  • Question

  • Everyone,

    This is piggybacking off another issue I'm having - but is there a way to disable (not delete users) all the mailboxes off a mailbox database from powershell (via script or command)? This is in an effort to prepare for the uninstall of Exchange 2010 (can't uninstall mbx role w/ mailboxes still on it, and I can't access EMC).

    Thx
    Saturday, January 23, 2010 4:37 PM

Answers

  • Get-Mailbox -Database <the Database> | Disable-Mailbox -Confirm:$false
    • Proposed as answer by Xiu Zhang Tuesday, January 26, 2010 8:42 AM
    • Marked as answer by Xiu Zhang Thursday, February 4, 2010 9:44 AM
    Saturday, January 23, 2010 5:33 PM