Ok, got you. You can follow along here.
https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/remove-orphaned-domains
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I promoted a DC as the only DC running Server 2019 for a subdomain to demonstrate the process to students. Now I'm trying to demote it again but this fails in a confusing way.
Server Manager / PowerShell claim "The domain controller for the domain cannot be found" while DCPROMO.LOG states that the DC for the parent domain is reachable and some things were done on the parent-DC before the error.
All messages indicate a problem replicating the "Schema" Active Directory partition. But running "repadmin /showrepl" shows that replication is working fine and the "Schema" partition is replicated regularly from the same parent-DC. DCPROMO.LOG ends with the following line "EVENTLOG (Error): NTDS Replication / Replikation : 2023".
I triple-checked the other "usual suspects" like network config and DNS but everything is OK. Does anybody have any idea what the issue here is`?
Thank in advance!
Note: DC is running German windows and the messages are translated by me.
Ok, got you. You can follow along here.
https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/remove-orphaned-domains
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
The simplest solution may be to remove it from network then perform some cleanup to remove remnants.
https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup
https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-manually-removing-a-domain-controller-server/ba-p/280564
--please don't forget to upvote
and Accept as answer
if the reply is helpful--