Exchange 2013/2016 Cumulative Update Issues

Delete the default database in Exchange 2013/16

After you have successfully installed Exchange 2013/16 on your server, a default mailbox database is created automatically. This database is created in the default exchange installation location. The default database name is created without any specific naming convention. Renaming this default database is fairly straightforward. You simply go into the EAC and select the default database and edit the name. This will not rename the .edb file, but you can simply dismount the database and use the Move-DatabasePath -identity “NewName” -EDBFilePath “<FilePath>\NewDBName.edb” and mount the database using Mount-Database “NewDBName” cmdlet. You can also go ahead and delete this database and create a new one. I shall show you how to delete the default database in Exchange 2013/16.

To find out the default database location, type the following cmdlet:

Get-MailboxDatabase -Identity "Mailbox Database 1122334455" | fl *filepath*

In order to delete the default mailbox, you need to move all the mailboxes from mailbox databases to the new mailbox database. At first, you shall require to create a new mailbox database. Then, move all user mailboxes to the new database. Type the following cmdlet to move all mailboxes from the default mailbox database to NewDB.

Get-Mailbox -Database "Mailbox Database 1122334455" | New-MoveRequest -TargetDatabase NewDB

Next, you shall require to move the arbitration mailbox. To view the arbitration mailboxes, type the below cmdlet in EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -Arbitration

To move the arbitration mailboxes, type the below cmdlet in EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -Arbitration | New-MoveRequest -TargetDatabase NewDB

To view the status of the mailbox move request, type the below cmdlet in EMS:

Get-MoveRequest

Next, we shall move the monitoring mailboxes. To view the monitoring mailboxes, you shall type the below cmdlet in EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -Monitoring

To move the monitoring mailbox, you type the following cmdlet into EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -Monitoring | New-MoveRequest -TargetDatabase NewDB

Next we shall move the auditlog mailboxes. To move the auditlog mailboxes, type the below cmdlets in EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -AuditLog

To move the auditlog mailboxes, you shall type the below cmdlet in EMS:

Get-Mailbox -Database "Mailbox Database 1122334455" -AuditLog | New-MoveRequest -TargetDatabase NewDB

Finally, all that remains is to go into EAC, and delete the default Exchange 2013/16 database.

Leave a Reply

Your email address will not be published. Required fields are marked *

PHP Code Snippets Powered By : XYZScripts.com