Home | About Us | Join Us | Contact Us | RSS
  • Home
  • Articles
    • Exchange 2010
    • Exchange 2007
    • Exchange 2003
    • OCS 2007 R2
  • How-To
    • Exchange 2010
    • Exchange 2007
    • Exchange 2003
    • OCS 2007 R2
  • News
  • Events
    • Calendar
    • Full Event List
  • Forums
  • Authors
    • Amit Tank
    • Nitin Gupta
  • Web Links
Login
Close



  • Forgot your password?
  • Forgot your username?
  • Create an account
Articles
  • Exchange 2010 (4)
  • Exchange 2007 (0)
  • Exchange 2003 (0)
How-Tos
  • Exchange 2010 (3)
  • Exchange 2007 (0)
  • Exchange 2003 (0)
Follow Us

Subscribe to RSS Feed Follow Us on Twitter LinkedIn with Us Become a Facebook Fan On Orkut

Most Popular Tags
article exchange 2010 exchange 2010 news how-tos litchi mucug news role based access control tools update rollup
Translator
Loading translations… loading

 

Locations of visitors to this page

Our Sponsors

Litchi Knowledge Center Pvt. Ltd. 

Home How-To Exchange 2010 Delete default Mailbox Database & move Arbitration Mailboxes

Delete default Mailbox Database & move Arbitration Mailboxes

PostDateIconSaturday, 19 December 2009 14:58 | PostAuthorIconWritten by Nitin Gupta (gupnit) | Print | E-mail
  • 1
  • 2
  • 3
  • 4
  • 5
( 14 Votes )

Exchange 2010 brings in a change the way Mailbox Databases are grouped. Mailbox Databases are no more associated with Storage Groups and Servers, instead they are managed as a part of the Organization. This also means that all Mailbox Database Names need to be Unique across the Exchange Organization.

As with earlier versions, when you install the first Exchange 2010 Server a Default Mailbox Database is created and to maintain the Uniqueness a random number is added to the Mailbox Database name.

image

Problem at Hand

After moving the Mailboxes from the Default Mailbox Database via EMC to a newly created Mailbox Database, when Administrators try to delete the Default Mailbox Database, it results in a error as follows:

The mailbox database ‘E-DB01′ cannot be deleted. Error: This mailbox database contains one or more mailboxes or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database . To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database -Arbitration. Before you can remove this mailbox database, you must disable, move or remove user mailboxes and move arbitration mailboxes.

clip_image002[27]

This is due to fact that there are still Arbitration Mailboxes in the Default Mailbox Database, which are not Managed/Moved from the Exchange Management Console (EMC). Arbitration mailboxes are a part of Moderated Transport feature of Exchange Server 2010 are used for managing approval workflow like distribution group membership approval.

So how do we go about moving Arbitration Mailboxes and Deleting the Default Database.

Current Scenario

For the purpose of this Example, the Database details are as follows:

  • Default Database Name: E-DB01
  • New Database Name: E-DB02
  • Database to be deleted E-DB01
  • It is assumed that all Mailboxes that you can view in Exchange Management Console (EMC) for E-DB01 have been already moved to E-DB02. This would move all Mailboxes except the Arbitration Mailboxes like System & Federation Mailboxes

    In order to be able perform the activities please ensure that, you have necessary Permissions in the Exchange Organization.

Implementation

The activities that we need to perform are as follows:

  • Start Exchange Management Shell on the Exchange Server
    Note: Keep the default Mailbox Database name handy (in this example E-DB01)
  • Run the command

    Get-Mailbox –Database “E-DB01” –arbitration | ft –wrap –auto


    clip_image002

    Tip: If you don’t use ft –warp –auto, you will not be able to see the full mailbox names.



  • Note down the 3 Mailbox Names in a Notepad from the prev ious cmdlet for each of the system and fed eratedemail mailboxes.

  • Run the command 

    New-MoveRequest –Identity “SystemMailbox{abcdeotrnsdosd-thedefaultname-nsdfrnfsfdsds}”


    clip_image002[6]
    Repeat the command for all 3 Mailboxes 

    clip_image002[8]
  • Once all the 3 mailboxes have been successfully queued, run Get-MoveRequest | Fl, to ensure status for each of the system and federatedemail mailboxes is Completed. Make sure Status :COMPLETE for each mailboxes with RecipeintTypeDetails: ArbitrationMailbox. (as per screenshot) 

    clip_image002[10]
  • Run the Command to get a list of all move requests. You will see other Mailboxes also there, which were moved earlier

    Get-MoveRequest –SourceDatabase “E-DB01”

     

    Important: The Move Requests need to be removed, before the Database can be deleted otherwise there will remain pointers to Source Database in Active Directory. The Move Requests associated with the Source Database (default Mailbox Database) would be erroneously be Stale, if the Source Database (default Mailbox Database) is Deleted/Removed while Move Requests were still present



  • Run the cmdlet 

    Remove-MoveRequest “SystemMailbox{abcdeotrnsdosd-thedefaultname-nsdfrnfsfdsds}”

     
    clip_image002[12]

    Repeat the same command for all Arbitration and other Mailboxes that you got as via Get-MoveRequest command.

  • Once Remove-MoveRequest cmdlet has been run for all Mailboxes, please run Get-MoveRequest –SourceDatabase “E-DB01” to ensure that no Move Requests are pending.
  • Start Exchange Management Console and delete the default Mailbox Database 

    clip_image002[14]

    clip_image002[16]

You are now all set.

References

  • Get-Mailbox
  • New-MoveRequest
  • Get-MoveRequest
  • Remove-MoveRequest

Article Statistics: This page has been viewed 38833 times.

Tags:
  • exchange 2010
  • how-tos
  • mailbox
  • powershell

Related Articles:

  • HP Sizer Tool for Microsoft Exhange Server 2010
  • Exchange Server 2010 - Series of Events !
  • Capacity Planning – Tools !
  • What’s new in OWA 2010
  • Installing Exchange Server 2010
  • 400 - Bad Request

    400 - Bad Request

    " target="_blank" rel="nofollow" title="Tweet This!">
 

Comments  

 
0 # Milind Naphade 2009-12-21 04:00
Way to go Nitin..!
Reply | Reply with quote | Quote
 
 
0 # Amit Tank 2009-12-21 11:08
This helps a lot while doing maintenance or load balancing of Mailbox Databases!

Thanks for sharing Nitin!
Reply | Reply with quote | Quote
 
 
0 # Raj Kumar 2010-01-05 10:53
Hi Nitin

Great Work! Please help me to know this..

we are doing this to remove the Arbitration Mailbox, How can I remove the Arb Mailbox from E-DB02 to uninstall My Exchange Server 2010 completly.
Reply | Reply with quote | Quote
 
 
+1 # Nitin Gupta 2010-01-05 23:02
Hi Raj,

Thanks a lot.

We you got to delete the Arbitration Mailboxes. Use Remove-Mailbox -identity "GUID" -arbitration -RemoveLastArbit rationMailboxAl lowed
or use ADSITEDIT to remove them and then uninstall

Cheers
Nitin

PS: Thanks Milind and Amit....hopefully some better ones in future
Reply | Reply with quote | Quote
 
 
+1 # 2010-08-17 19:41
thanks for such nice Post god bless u
Regards
Anuj
http://www.winservers.co.in
Reply | Reply with quote | Quote
 
 
0 # 2010-10-31 19:44
good stuff that is what i am looking for

cheers :)
Reply | Reply with quote | Quote
 
 
0 # 2010-11-26 11:16
Excellent post!
Thanks for going to the effort of documenting this for others.
Reply | Reply with quote | Quote
 
 
0 # 2011-01-07 18:34
Hi,

Thanks for this post.
Reply | Reply with quote | Quote
 
 
0 # 2011-01-29 22:44
What if you have multiple mail databases? Do you need to make copies of these arbitration mailboxes for each mail database?
Thanks
Reply | Reply with quote | Quote
 
 
0 # 2011-02-05 02:38
Excellent information! Thanks for taking the time to post this very thorough and clear description of the process.
Reply | Reply with quote | Quote
 
 
0 # 2011-05-31 19:04
Thanks, I was searching for hours to solve this "problem", but this did the trick.

But why didn't you just pipe the cmdlet's to the next command? That way, you won't have to type the complete ID's. It worked for me.
Reply | Reply with quote | Quote
 
 
0 # 2011-06-28 05:23
Hi, I have followed your steps and when I get to the last one of removing the DB I get the same error and when I check the console I can see the 3 mailboxes in "Disconnected Mailboxes". So I attempted the move commands again this time specifying the target database and now I see multiples in "Disconnected Mailbox". What have I done, and what can I do to fix it?
Reply | Reply with quote | Quote
 
 
0 # 2011-07-17 01:32
I had to add -TargetDatabase "DB02" to make the move-request work without an error. Otherwise I receive this error:

"Unable to automatically select a database for mailbox 'Microsoft Exchange Approval Assistant'. Please try the operation
again and specify a database for the mailbox."
Reply | Reply with quote | Quote
 
 
0 # 2011-09-23 02:23
When I try the new-moverequest command, I get back an error message that says the Mailbox database 'blahblahblah' is offline.
Reply | Reply with quote | Quote
 
Refresh comments list
RSS feed for comments to this post.

Add comment


Security code
Refresh

Send
Cancel



| Home || Disclaimer || Privacy Policy || Link to us || Terms of Use || Advertise with Us || Site Map |

Technical content is licensed under a Creative Commons Attribution 2.5 India License. | 2009 Microsoft Unified Communications - User Group, India All Rights Reserved.