Cannot Remove-MailboxDatabase?
Have a database where everything has been removed & moved to other databases but this database cannot be deleted. This database had 1 DAG copy which has been removed and the copy successfully deleted from the other DAG member. Remove-MailboxDatabase MyDatabase 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 -DisaleLastArbitrationMailboxAllowed 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>. + CategoryInfo : InvalidOperation: (MyDatabase:DatabaseIdParameter) [Remove-MailboxDatabase], AssociatedUse rMailboxExistException + FullyQualifiedErrorId : 6B234404,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveMailboxDatabase Ran these commands: Get-Mailbox -Database MyDatabase (no results) Get-MailboxPlan (cmdlet does not exist, we are not running in /hosting mode) Get-Mailbox -Archive -Datbase MyDatabase (no results) Get-Mailbox -Arbitration -Database MyDatabase (no results) Get-MoveRequest (no results) How can database MyDatabase be removed?
March 27th, 2012 10:50am

Wrong topic...sorry. Bart Timmermans | Technical Consultant at KPN Consulting Follow me @ My Blog | Linkedin | Twitter Please mark as Answer, if my post answers your Question. Vote as Helpful, if it is helpful to you.
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2012 11:02am

Hi 1. Run following command for permanently purges all soft-deleted mailboxes from mailbox database Get-MailboxStatistics -Database "XX" | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted} Purge all mailbox and run Remove-MailboxDatabase cmdlet again 2. Clean-MailboxDatabase -Identity "XX" http://technet.microsoft.com/en-us/library/bb124076.aspx 3.If above suggestion doesnt work, you can remove database through ADSI. This article will be helpful to you. Terence Yu TechNet Community Support
March 28th, 2012 9:18pm

I did not realize Get-MailboxStatistics -Database "XX" would show other mailboxes in the db than what Get-Mailbox did. I saw several mailboxes that had been moved to other databases. Our environment is set to not delete until a backup so I purged these several mailboxes then was able to Remove-MailboxDatabase MyDatabase successfully. Thank you!
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2012 11:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics