Cannot demote DC: Replication error 2023

Marcus Büttemeyer 391 Reputation points
2022-07-20T12:34:51.583+00:00

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.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | Other
{count} vote

Accepted answer
  1. Anonymous
    2022-07-20T13:02:15.02+00:00

    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--

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2022-07-20T12:39:30.11+00:00

    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--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.