Hello, @Sunil Kumar,
Great to know that the issue has already been resolved and thanks for sharing the solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others(https://docs.microsoft.com/en-us/answers/support/accepted-answers#why-only-one-accepted-answer)", I'll repost your solution in case you'd like to "Accept (https://learn.microsoft.com/en-us/answers/support/accept-answer#accepted-answer-in-a-question-thread)" the answer).
Issue Symptom:
The author ran into a series of errors related to permissions and Active Directory while deploying Exchange.
Resolution:
The issue has been resolved by removing Exchange objects from Active Directory. Here’s a summary of the steps we followed:
Object Removal:
We removed all Exchange-related objects from both the Configuration Partition and the Domain Partition using ADSI Edit.
Schema and AD Preparation:
We prepared the schema and Active Directory using the following commands:
setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF
setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF
Installation:
After successfully preparing the schema and AD, the installation process proceeded without any further issues.
Hope you can consider accepting the answer as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.
Thank you for helping to improve Microsoft Q&A!
Best Wishes,
Alex Zhang