Friday, July 31, 2015

Exchange 2016 - Remove Default Database...Audit Log mailbox?

As you have seen with Exchange 2013 when you try to remove the default Exchange database that is created when installing Exchange you are greeted with this lovely error message:

This Mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes. ...




With Exchange 2013 you were able to remove the database after moving any regular user mailboxes

Get-Mailbox -Database <dbname>  | New-MoveRequest –TargetDatabase <dbname>

then moving the arbitration mailbox 

Get-Mailbox -Database <dbname> -Arbitration | New-MoveRequest –TargetDatabase <dbname>

but now with Exchange 2016 there is a new type of mailbox know as the "AuditLog" mailbox. This is a change in the architecture of mailbox auditing which no longer stores audit data on the individual mailboxes but rather stores the data in central audit mailboxes. This provides better long term storage as well as better reporting and exporting of data. The structure matches that of Office 365 to also help keep things consistent with hybrid environments. So to remove that AuditLog mailbox just use the new switch to move the mailbox:

Get-Mailbox -Database <dbname> -AuditLog | New-MoveRequest –TargetDatabase <dbname>

 Once all the mailboxes have been moved off you should now be able to remove the default database. 

-

mbpW
o
GnW

O.oy.d#in
dToéd.
ináw

6dra AMO
glpWKWinn
O

p

This text was recognized by the built-in Ocrad engine. A better transcription may be attained by right clicking on the selection and changing the OCR engine to "Tesseract" (under the "Language" menu). This message can be removed in the future by unchecking "OCR Disclaimer" (under the Options menu). More info: http://projectnaptha.com/ocrad

1 comment:

  1. Thanks for mention that. I had a similar issue, but your posting didn´t solved my problem. However based on your information i was able to find the folllowing posting (http://www.admin-enclave.com/en/articles/exchange/286-resolved-error-when-trying-to-remove-a-mailbox-database-on-exchange-server-2016.html) which mentioned that the DBs are stored in the root. So i used the command mentioned on the website and got my issue solved :D

    ReplyDelete