How to fix “Error” when removing the default Microsoft Exchange database

Problem

  • You have deployed Exchange 2013
  • You want to remove the default database, but you are getting the following error

Error1

  • You have followed all the instructions to identify and migrate any mailboxes that may be residing in the default database e.g.
    • Get-Mailbox –Database “Mailbox Database 1246106742”
    • Get-Mailbox –Database “Mailbox Database 1246106742” –Archive
    • Get-Mailbox –Database “Mailbox Database 1246106742” –Arbitration
    • Get-Mailbox –Database “Mailbox Database 1246106742” –PublicFolder
  • You have even tried
    • Get-Mailbox | where ArchiveDatabase –eq “Mailbox Database 1246106742”
  • Still no mailboxes to be found in the database

Set-ADServerSettings

Solution

If your Exchange server is in a child domain, some mailboxes (e.g. arbitration / discovery) will appear missing.  You need to run the following command to find these mailboxes

Set-ADServerSettings –ViewEntireForest:$true

 Set-ADServerSettings

Then you will see the mailboxes which need to be moved before deleting the database.  Move the mailboxes using the new-moverequest as follows:

  • Get-Mailbox –Database “Mailbox Database 1246106742” –Arbitration | New-MoveRequest  -TargetDatabase DB01

Leave a Reply

Your email address will not be published. Required fields are marked *