Exchange 2010, 2013 delete the default database
After installing the mailbox service role in Exchange 2010 2013, it comes with a database "Mailbox Database xxxxxxxx" by default.
If you need to delete, you need to first create a new database, and then migrate the system mailboxes (approval assistant, Federation) and discovery search mailboxes in your own database to the new database before you can delete them.
Get the user mailbox in the specified data
Get-Mailbox-Database DBName
Get the archive mailbox in the specified data
Get-Mailbox-Database DBName-Archive
Get the arbitration mailbox in the specified data
Get-Mailbox-Database DBName-Arbitration
--
Migration Discovery search mailbox
View Discovery search mailbox
Get-Mailbox-Filter {RecipientTypeDetails-eq "DiscoveryMailbox"} get the mailbox name
Establish a migration request
New-MoveRequest-Identity "DiscoverySearchMailbox {XXXXX}"-TargetDatabase DBName
Migration completed delete request
Get-MoveRequest-MoveStatus Completed | Remove-MoveRequest (or CompletedWithWarning)
Verification
Get-Mailbox-Filter {RecipientTypeDetails-eq "DiscoveryMailbox"} | select Name,Database
Migrate system mailboxes (approval Assistant, Federation)
Check mailbox name
Get-MailBox-Arbitration | select Name,Database
Establish a migration request
New-MoveRequest-Identity "SystemMailbox {xxxxxx}"-TargetDatabase DBName
New-MoveRequest-Identity "Migration.xxxxxx"-TargetDatabase DBName
New-MoveRequest-Identity "FederatedEmail.xxxxxx"-TargetDatabase DBName
Migration completed delete request
Get-MoveRequest-MoveStatus Completed | Remove-MoveRequest (or CompletedWithWarning)
Verification
Get-MailBox-Arbitration | select Name,Database
-
Exchange 2013 delete database warning
Failed to delete the monitoring mailbox object for database 'Mailbox Database xxxxxx'. Exception: the Active Directory operation on DC failed. This error cannot be retried. Other information: access denied. Active Directory response: 00000005: SecErr: DSID-031520B2, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0.
All monitoring mailboxes can be viewed through the Exchange powershell command
Get-Mailboxdatabase | Get-Mailboxstatistics |? {$_ .Displayname-like "* HealthMailbox*"} | ft displayname,totalitemsize,Database
You can manually delete monitoring mailbox objects with your own database
Log in to DC to open the ADSI editor
Default naming context
All monitoring mailbox objects can be seen in "Microsoft Exchange System Objects"-"Monitoring Mailboxes"
Right-click to view properties one by one
Determine whether the object belongs to the deleted database by homeMDB and whenCreated
Delete the homeMDB if the value is empty and whenCreated corresponds to the time when the mailbox role is installed.