Tutorials

Official Microsoft Support for SBS 2011 and 2008 has ended on January 14, 2020. Use promo code 'sbsmigration' and get 10% discount on your SBS 2011 or 2008 migration kit.
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

Subscribe and receive ‘how to’ and ‘best practice’ articles on server and cloud maintenance, design and troubleshooting.

  • Monthly newsletter with a summary of all new tutorials
  • Get an email as soon as a new tutorial has been published

About www.server-essentials.com 

www.server-essentials.com is founded by Mariette Knap, a Dutch Microsoft MVP. www.server-essentials.com is a community for IT Consultants and Business Owners who, themselves, take care of the IT infrastructure and Employees who do that little extra in the company to keep things running. Our forum is for discussing all things ‘IT’ and more.  Our documentation is top notch and written by and for the community.


 
Contact Us

Concentrix BV

C. de Rijcklaan 1

3723 PM Bilthoven

The Netherlands

Phone +31 85 876 9409

KvK 30202318

VAT Id 814036739B01