Cannot remove a mailbox database in exchange 2010
Are you trying to remove a mailbox database and you have removed all the users mailboxes but you cant because it says: “mailbox database contains one or more mailboxes or arbitration mailboxes”
Move the mailboxes (if you have a database to move to)
Set-AdServerSettings -ViewEntireForest $True
get-mailbox –arbitration –database | new-MoveRequest –targetdatabase
get-moverequest = Look for compleation
get-moverequest | remove-moverequest
Remove-mailboxdatabase –id
Disable the mailboxes (no other database to move to, but don’t want to delete the ID)
Set-AdServerSettings -ViewEntireForest $True
get-mailbox –arbitration –database <databasename> | disable-mailbox
Remove-mailboxdatabase –id
Remove the mailboxes (Completely removing Exchange 2010)
Set-AdServerSettings -ViewEntireForest $True
get-mailbox –arbitration –database <databasename> | remove-mailbox
Remove-mailboxdatabase –id
Note: Only do option 2 or 3 if you are removing exchange entirely, if you intend to keep exchange in your environment you should do a move, if for some reason that doesn’t work and you disable or remove it you need to create a new arbitration mailbox “new-mailbox -arbitration”