carbonbase
asked on
Decommissioning an Exchange 2010 mailbox server
Hello, I am trying to decommission one of my Exchange servers from my Exchange 2010 environment. I have migrated all the users off the server. I am having a problem trying to remove the last database on the server, after dismounting the database and trying to remove it I get the following error:
I have come across a couple of articles online, in particular this one:
I ran:
then
this reveals the hidden system mailbox. I then ran this command to remove the system mailbox:
The SystemMailbox removes fine but I am still unable to remove the database (I get the same original error posted above). After deleting the SystemMailbox, I ran the
------------------------------------ ---------- ----------
Microsoft Exchange Error
------------------------------------ ---------- ----------
The mailbox database 'MX1-SG10' cannot be deleted.
MX1-SG10
Failed
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 -DisableLastArbitrationMailboxAllowe d 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>.
I have come across a couple of articles online, in particular this one:
I ran:
Set-AdServerSettings -ViewEntireForest $True - done
then
get-mailboxstatistics -database <databasename> | fl
this reveals the hidden system mailbox. I then ran this command to remove the system mailbox:
remove-mailbox -database "MX1-SG10" -StoreMailboxIdentity "SystemMailbox{a2b7be7a-0a6d-4d6c-94db-71fb680c33c6}"
The SystemMailbox removes fine but I am still unable to remove the database (I get the same original error posted above). After deleting the SystemMailbox, I ran the
Get-MailboxStatistics
command again and the only thing it lists is "Microsoft Exchange Approval Assistant", however when I try and remove it I get the following error:The mailbox that you specified is connected to "Microsoft Exchange Approval Assistant". Only disconnected mailboxes can
be reconnected. Specified mailbox: "aa128275-4abc-4ae2-8bc7-644662eb052 6".
+ CategoryInfo : NotSpecified: (:) [Remove-Mailbox], TaskInvalidOperationException
+ FullyQualifiedErrorId : 112D3367,Microsoft.Exchange.Manageme nt.Recipie ntTasks.Re moveMailbo x
ASKER
I'm running Exchange 2010, most of the commands in the article don't work...
Is this server a multi-role server or just MB? Do you also have the a public folder database?
ASKER
Its a mailbox server only. The public folder db is on one of my other mailbox servers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, the move completed but I kept getting an error about the mailbox not able to be deleted from the source. I had to remove the db by ADSI Edit
https://practical365.com/exchange-server/exchange-2013-database-removal-error-this-mailbox-database-contains-one-or-more-mailboxes/