none
How to delete Domain contoller that not exist in AD but he show in search object RRS feed

  • Question

  • How to delete Domain contoller that not exist in AD but he show in search object?

    the domain controller deleted already from AD that work,

    He show when I do search

    Monday, April 12, 2021 4:13 PM

All replies

  • There is a nice article. Please go through this.

    https://www.manageengine.com/products/active-directory-audit/kb/how-to/how-to-remove-a-domain-controller-that-no-longer-exists.html

    • Proposed as answer by A-Rookie Wednesday, April 14, 2021 9:16 AM
    Wednesday, April 14, 2021 9:13 AM
  • Its always a hassle when you don't remove a DC in the "normal" way.

    When you don't, you need to do a Metada cleanup for that DC.

    https://servergurunow.wordpress.com/2017/08/08/metadata-cleanup-of-a-domain-controller-2/


    Friday, May 7, 2021 1:29 PM
  • Hey,

    1Removing metadata via Active Directory Users and Computers
    2Removing the DC server instance from the Active Directory Sites and Services
    3Remove metadata via ntdsutil 

    C:\Users\Administrator>ntdsutil
    ntdsutil: metadata cleanup
    metadata cleanup: remove selected server DC2
    Binding to localhost ...
    Connected to localhost using credentials of locally logged on user.
    LDAP error 0x22(34 (Invalid DN Syntax).
    Ldap extended error message is 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8350, best match of:'CN=Ntds Settings,DC2'
    Win32 error returned is 0x208f

    • Proposed as answer by Bryan丶Song Wednesday, October 20, 2021 5:41 AM
    Friday, May 21, 2021 1:27 PM
  • Hi, 

    Removing metadata via Active Directory Users and Computers
    Log in to DC server as Domain/Enterprise administrator and navigate to Server Manager > Tools > Active Directory Users and Computers.
    Expand the Domain > Domain Controllers.
    Right click on the Domain Controller you need to manually remove and click Delete.

    Hope this answer will help you.

    Monday, May 24, 2021 7:25 AM
  • I m also facing this issue but from there i get solution. Thank you all of you.
    Tuesday, May 25, 2021 3:57 AM
  • i am also facing this issue as well
    Tuesday, May 25, 2021 7:56 AM
  • Thanks for the sulution
    Saturday, June 26, 2021 6:23 AM
  • The following detailed steps will help you accomplish this:

    Step 1: Removing metadata via Active Directory Users and Computers
    Log in to DC server as Domain/Enterprise administrator and navigate to Server Manager > Tools > Active Directory Users and Computers

    Expand the Domain > Domain Controllers 

    Right click on the Domain Controller you need to manually remove and click Delete

    Step-By-Step: Manually Removing A Domain Controller Server

    Click Yes to confirm within the Active Directory Domain Services dialog box

    Step-By-Step: Manually Removing A Domain Controller Server

    In next dialog box, select This Domain Controller is permanently offline and can no longer be demoted using the Active Directory Domain Services Installation Wizard (DCPROMO) and click Delete 

    Step-By-Step: Manually Removing A Domain Controller Server


    If the domain controller is global catalog server, in next window click Yes to continue with deletion

    If the domain controller holds any FSMO roles in next window, click Ok to move them to the domain controller which is available
    Step 2: Removing the DC server instance from the Active Directory Sites and Services
    Go to Server manager > Tools > Active Directory Sites and Services

    Expand the Sites and go to the server which need to remove

    Right click on the server you which to remove and click Delete 

    Step-By-Step: Manually Removing A Domain Controller Server

    Click Yes to confirm

    Step-By-Step: Manually Removing A Domain Controller Server

    Step-By-Step: Manually Removing A Domain Controller Server

    You are then presented with the metadata cleanup prompt
     meta8

    Next type remove selected server <servername>
    NOTE: Replace <servername> with domain Controller server you wish to remove

    Step-By-Step: Manually Removing A Domain Controller Server

    Click Yes to proceed when presented with the warning window 

    Execute the quit command twice to exit out of the console

    Regards,

    Rachel Gomez

                             
    Friday, August 19, 2022 4:48 AM
  • Hello,

    I think you see DC this way because you didn't clean with a recommended method. You will need to do metadata for this, and I recommend that you do a health check for existing DC servers.

    Windows Server 2019 Üzerinde FSMO Rollerinin Taşınması ve MetaData Cleanup İşlemleri ile Eski DC' nin Kaldırılması - ÇözümPark (cozumpark.com)

    Friday, August 19, 2022 8:45 AM