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
  • Hi,

    You can follow these steps-

    If a Domain Controller that no longer exists in Active Directory is still showing up in search results, you can use the Active Directory Sites and Services snap-in to remove it. Here are the steps to do this:

    1. Open the Active Directory Sites and Services snap-in on a Domain Controller in the same domain.

    2. In the left pane, expand the Sites container and then expand the container for the site where the removed Domain Controller was located.

    3. In the left pane, expand the Servers container and then expand the container for the removed Domain Controller.

    4. In the left pane, right-click on the NTDS Settings object for the removed Domain Controller and select Delete.

    5. Confirm that you want to delete the object by clicking Yes.

    6. Close the Active Directory Sites and Services snap-in.

    Another method you can use to remove a Domain Controller from AD is by using the ntdsutil command-line tool, here's an example of how to use it:

    1. Open the Command Prompt as an administrator

    2. Type the following command to enter Ntdsutil:
    ntdsutil

    3. Type the following command to enter the metadata cleanup mode:

    metadata cleanup

    4. Type the following command to list all the domain controllers:

    connections

    5. Type the following command to select the domain controller that you want to remove:

    select operation target

    6. Type the following command to remove the selected domain controller:

    remove selected server

    7. Type the following command to quit the Ntdsutil:

    quit

    Please note that, before you proceed with any of the above steps, make sure that you have a good backup of your AD and make sure that you understand the effect of removing a domain controller on your domain.


    Thanks


    Wednesday, January 25, 2023 11:32 AM
  • To delete a domain controller that no longer exists in your Active Directory (AD) environment but is still showing up in search results, follow these steps:

    1. Open Active Directory Users and Computers (ADUC) console.

    2. Right-click on the domain and select Find.

    3. In the search box, type the name of the domain controller that you want to delete.

    4. Right-click on the domain controller object in the search results and select Delete.

    5. Confirm the deletion by clicking Yes.

    6. If the domain controller object cannot be deleted due to access restrictions or other errors, you can try using the ADSI Edit tool.

    7. Open ADSI Edit by clicking Start, Run, and then typing adsiedit.msc.

    8. Connect to the default naming context and locate the domain controller object that you want to delete.

    9. Right-click on the object and select Delete.

    10. Confirm the deletion by clicking Yes.

    It is important to ensure that you are logged on with an account with sufficient permissions to perform the deletion and that you have made a backup of your AD environment before making any changes.

    Monday, January 30, 2023 11:51 AM
  • To delete a domain controller that no longer exists in Active Directory but still appears in the search results feed, follow these steps:

    1. Launch Active Directory Sites and Services.
    2. Expand the site where the old domain controller was located.
    3. Right-click the server object and select "Delete".
    4. Confirm the deletion by clicking "Yes".

    If the old domain controller still appears in the search results feed after deletion, you may need to run the following command in the Command Prompt:

    php<button class="flex ml-auto gap-2" style="border-width:0px;border-style:solid;border-color:#d9d9e3;--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:;font-family:inherit;font-size:12px;font-weight:inherit;line-height:inherit;margin:0px 0px 0px auto;padding:0px;appearance:button;background-image:none;cursor:pointer;display:flex;gap:0.5rem;"><svg class="h-4 w-4" fill="none" height="1em" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect height="4" rx="1" ry="1" width="8" x="8" y="2"></rect></svg>Copy code</button>
    repadmin /removelingeringobjects <Destination DC FQDN> <Source DC GUID> <NC>

    Replace "Destination DC FQDN" with the fully qualified domain name of the destination domain controller and "Source DC GUID" with the GUID of the old domain controller that you want to remove. "NC" represents the distinguished name of the partition to be cleaned.

    Monday, January 30, 2023 7:48 PM
  • 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

    Anos atrás eu estava com o Windows Server 2019 instalado, ele pegou uma atualização automática, deu problema de baixar driver x86 (32 bits) e ele ser X64 (64 bits) tudo o que eu tentei anos atrás, nada fazia ele voltar a funcionar. Então eu peguei o DVD de instalação, exclui a partição, criei a partição de novo, formatei, instalei, e configurei tudo o que eu queria usar de novo. Eu tinha backup do HD, não perdi nada importante para mim.

    ---  Translate ---

    Years ago I had Windows Server 2019 installed, it got an automatic update, there was a problem downloading x86 driver (32 bits) and it being X64 (64 bits) everything I tried years ago, nothing made it work again. So I took the installation DVD, deleted the partition, created the partition again, formatted it, installed it, and set up everything I wanted to use again. I had HD backup, I didn't lose anything important to me.


    Ana Gauna | Data Analyst | If I helped you, mark the answer as useful

    Monday, January 30, 2023 8:13 PM
  • Removendo Dispositivos Azure AD e Intune com Powershell 

    https://social.technet.microsoft.com/wiki/pt-br/contents/articles/54546.removendo-dispositivos-azure-ad-e-intune-com-powershell.aspx?CommentPosted=true#commentmessage


    Ana Gauna | Data Analyst | If I helped you, mark the answer as useful

    Monday, January 30, 2023 9:17 PM
  • Delete Domain contoller that does not exist in AD but shows up in search

    object

    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.

    Please mark this reply as useful, if I did help you :-)

    Best Regards,
    Sahin, Erkan

    Monday, January 30, 2023 11:42 PM