Friday, 22 January 2016

UNABLE TO REMOVE LAST MAILBOX IN EXCHANGE 2010


We are planning to remove our Microsoft Exchange 2010, mailbox server. During the installation process, we get the error below:

Error:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.


Based on our experience during removing/clean up all the mailbox users and this is the last database that we unable to remove, so it's may because of the mailbox arbitration. To verify, just run the command as below:

Get-Mailbox -Arbitration -Database <databasename>

 

After verified, run the command to disable last arbitration mailbox, as below:

Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed



To confirm choose A to Yes to all.  After that we can manually remove the last mailbox and uninstall the mailbox server.