Hi @Pham Tien Dung,
Welcome to the Microsoft Q&A platform!
According to your description, the error message you encountered in the screenshot indicates that a database object in the Active Directory may be damaged or does not match the current Exchange server. You can try the following steps to solve this problem:
1.You need to find and remove the damaged or orphaned database objects in Active Directory. First, you can use the following command to list all database objects, including those that may be damaged:
Get-MailboxDatabase -IncludePreExchange2013 | Format-List Name,Guid,Server
Identify the database objects that may be damaged.
- If you confirm that a database object is orphaned or damaged, you can use the following command to remove it from Active Directory:
Remove-MailboxDatabase -Identity "Mailbox Database 0616638881"
Please double-check the name of the database object you want to remove to ensure that it is accurate.
- Make sure the replication status of Active Directory is normal. Use the following command to check the AD replication status:
repadmin /replsummary
Make sure there are no replication errors.
- Make sure the records in DNS have been cleaned up and do not point to the old Exchange server that has been removed.
- Force update the Active Directory schema to ensure that the newly installed Exchange server is correctly registered:
Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD
- After completing the above operations, restart all related Exchange services or the entire server to ensure that all changes take effect.
Please feel free to contact me if you have any queries.
Best,
Jake Zhang