How to Remove an Invalid AD Domain Controller

Windows Server 2019 Standard

  1. Using ntdsutil to cleanup metadata.

    PS C:\> ntdsutil
    C:\Windows\system32\ntdsutil.exe: metadata cleanup
    metadata cleanup: connections
    server connections: connect to domain demo.com
    server connections: quit
    metadata cleanup: select operation target
    select operation target: list domains
    select operation target: select domain 0
    select operation target: list sites
    select operation target: select site 0
    select operation target: list servers in site
    select operation target: select server 1
    select operation target: quit
    metadata cleanup: remove selected server
    metadata cleanup: quit
    C:\Windows\system32\ntdsutil.exe: quit
  2. Open Active Directory Users and Computers (dsa.msc) -> Domain Controllers

    Remove the invalid DC entry.

  3. Open DNS Manager (dnsmgmt.msc) -> Forward Lookup Zones -> demo.com -> Name Servers

    Remove the invalid DC entry.

  4. Open Active Directory Sites and Services (dssite.msc) -> Default-First-Site-Name -> Servers

    Remove the invalid DC entry.

Reference

Clean up Active Directory Domain Controller server metadata