Link to home
Start Free TrialLog in
Avatar of carbonbase
carbonbaseFlag for United Kingdom of Great Britain and Northern Ireland

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:

--------------------------------------------------------
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 -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>.

I have come across a couple of articles online, in particular this one:



I ran:

Set-AdServerSettings -ViewEntireForest $True - done

Open in new window


then

get-mailboxstatistics -database <databasename> | fl

Open in new window


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}"

Open in new window


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

Open in new window

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-644662eb0526".
    + CategoryInfo          : NotSpecified: (:) [Remove-Mailbox], TaskInvalidOperationException
    + FullyQualifiedErrorId : 112D3367,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox
Avatar of Jason Crawford
Jason Crawford
Flag of United States of America image

Avatar of carbonbase

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?
Its a mailbox server only.  The public folder db is on one of my other mailbox servers.
ASKER CERTIFIED SOLUTION
Avatar of Tim Edwards
Tim Edwards
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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