Tutorials

Metadata cleanup for the removal of a failed domain controller

How to do a metadata cleanup for the removal of a failed domain controller from your AD

There is an easy way to do a metadata cleanup of a failed DC. Last week I had a customer who tried to introduce a new replica DC that should be used in a migration project from an old SBS to something new. Previously he had the SBS as his PDC and another DC as a backup DC. That backup DC died so he turned it off and did not bather anymore about that. As soon as he tried to introduce a new replica DC trouble began because he could not promote that new DC to become a Domain Controller, it was looking for that failed DC.

We need to remove the failed DC first from the Active Directory. In our case it was DC02 that was no longer around but listed as a DC and GC. Here is how we remove that failed DC.

  1. For a quick overview let’s have a look at Active Directory Sites and Services what DC’s we have and what the name of the containers are.
    Metadata cleanup for the removal of a failed domain controller
  2. Open an elevated Command Prompt
    Metadata cleanup for the removal of a failed domain controller
  3. Type ‘ntdsutil’.
    ntdsutil
    Metadata cleanup for the removal of a failed domain controller
  4. Type ‘metadata cleanup’.
    metadata cleanup
    Metadata cleanup for the removal of a failed domain controller
  5. Type ‘remove selected server CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=numinous,DC=local’. You need to change the server name and domain name to your own situation. If you have changed the 'Default-First-Site-Name' to something else you need to change that also. Read the popup carefully and if you agree that you are removing the correct server click Yes.
    remove selected server CN=DC02,CN=Servers,CN=Default-First-SiteName,CN=Sites,CN=Configuration,DC=numinous,DC=local
    Metadata cleanup for the removal of a failed domain controller
  6. You can ignore the ‘Element not found message’.
    Metadata cleanup for the removal of a failed domain controller
  7. Type 'quit'.
    quit
    Metadata cleanup for the removal of a failed domain controller
  8. And type ‘quit’ again.
    quit
    Metadata cleanup for the removal of a failed domain controller
  9. Type ‘shutdown /r /t 0’ to reboot the server immediately.
    shutdown /r /t 0
    Metadata cleanup for the removal of a failed domain controller

About server-essentials.com 

Server-essentials.com was established by Mariette Knap, an alumni Microsoft MVP. It serves as a community for IT Consultants and Business Owners who manage their own IT infrastructure, as well as for Employees who go the extra mile to ensure smooth operations. The forum is dedicated to discussions on all aspects of 'IT' and beyond. The documentation provided is of the highest quality and is crafted by and for the community.


Microsoft Partner

server-essentials.com
C. de Rijcklaan 1
3723 PM Bilthoven
The Netherlands 
Chamber of Commerce 90147480
VAT Id Number NL004793120B27