Exchange 2013 Default DB

When you first install an Exchange 2k13 Mailbox Database you will notice there is a default database named something like below. You can access this by going to the EAC (https://fe1/ecp), Servers, Databases or using the EMS command Get-MailboxDatabase.

Most Administrators are going to want to either change this default name or delete this database. Renaming is pretty straightforward but deleting can be a little confusing. I will go through both tasks and hopefully clear up the hurdles you may face. Let’s dig in.

To rename the database open the EAC, Click Servers, Databases, Click Edit (pencil), type in your new name and click save.

You don’t have to dismount or anything just rename and save. Now if you are obsessive compulsive like me then the .edb database file name will have to match the actual DB name. When you rename the DB it won’t change the .edb name. You can do that by dismounting the DB and running Move-DatabasePath –Identity “NewDBName” –EdbFilePath “<path>\NewDBName.edb. Now mount the DB with Mount-Database “NewDBName”. We are now finished renaming our DB and the EDB file.

Now let’s say we don’t want to rename it but we want to delete it. We open up EAC and Click Servers, Databases, and then we click the trash can and click Delete. Unfortunately we get this error.

If you have moved all other mailboxes off this database (Get-Mailbox –Database “DatabaseName” | New-MoveRequest –TargetDatabase "TargetDatabaseName") then more than likely this error is due to Arbitration mailboxes. These hidden mailboxes are created by default when you add the first Exchange 2k10\2k13 Server to the Org. Since these mailboxes are hidden you won’t get them by running Get-Mailbox. You must include the –Arbitration switch (see below).

Now to actually move these mailboxes we need to run Get-Mailbox –Arbitration and then pipe that to New-MoveRequest similar to below.

Once these moves are completed (Get-MoveRequest to check status) we can go back into EAC and delete this mailbox database successfully.

Comments (11)

  1. Great – thanks for sharing!

  2. Anonymous says:

    Awesome, this worked great for me. Thanks

  3. Anonymous says:

    Exchange server databases can be read, opened by the medium of microsoft exchange recovery edb

  4. Michael Firsov says:

    Thank you for the greate article!

  5. Gu says:

    It is the Exchanage 2010 way to remove the default DB, you do not need to do it on Exchange 2013 any more!

    You can easily remove the default DB after migate the mailboxes.

  6. GreenVomit8 says:

    Great article. Helped me. At first it would not let me delete the default database but did let me after I rebooted the server.

  7. Prince Cassius says:

    Thanks for the tip! One question on renaming the default database. After successfully renaming it and the .mdb file, I was unable to remove the old database because Exchange 2013 still writes to it. Without the original default database, i was unable to mount the renamed database. It only mounted after i brought it back. I tried rebooting the server to no avail…am i missing something?


  8. Michael R. says:

    Great Article.
    Thanks 🙂

  9. Jason says:

    Not sure why none of the Exchange 2013 upgrade guides mention this. Worked great, though, thanks!

  10. Sandor Nilsson says:

    When I try to change the the from the Exchange Management Shell nothign happends. I just get two Chevrons in the console and nothng happends… or does it take some while to rename?

  11. BMAC says:

    In the event of deleting the DB and associated files, you don’t mention that it’s likely Noderunner.exe will have a lock on the files and you need to give the server a bit of a slap and tickle to get the files released.