I'm replacing my domain controller with another domain controller with more efficient hardware and migrate from Server 2012 R2 to Windows Server 2019.
The first step I joined the new server to the domain. Then promoting the server to a domain controller shows this error:
Verification of prerequisites for Active Directory preparation failed.
Unable to verify whether schema master has completed a replication cycle after last reboot. Exception: Unavailable Critical Extension.
Server extended error: 8366. Server extended message: 000020AE: SvcErr: DSID-0321040C, problem 5010 (UNAVAIL_EXTENSION), data 8610 . Adprep failed to verify whether schema master has completed a replication cycle after last reboot. [Status/Consequence] The schema is not upgraded. [User Action] Check the log file ADPrep.log in the C:\Windows\debug\adprep\logs\20231105012425-test directory for possible cause of failure.
Upon searching I found that I have residual for an older domain controller.
steps remove domain controller
I followed these steps and couldn't delete it.
I went to Active Directory Sites and Services to check and delete, which showed:
Windows cannot delete object LDAP://... because: A referral was returned from the server.
i can't delete server PRIME-PACS at all
How can I resolve this problem to add a new domain controller?