Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.

 

  1. At the command line, type “Ntdsutil” and press ENTER.
  2. type “metadata cleanup” and press Enter.
  3.  type “connections” and press Enter.
  4. type “connect to server <servername>”, where <servername> is the domain controller (any functional domain controller in the same domain) Press Enter.
  5. Type “quit” and press Enter
  6. Type “select operation target” and press Enter
  7. Type “list domains” and press Enter (lists all domains in the forest with a number associated with each)
  8. Type “select domain <number>”, where <number> is the number corresponding to the domain. Press Enter.
  9. Type “list sites” and press Enter.
  10. Type “select site <number>”, where <number> refers to the number of the site, Press Enter.
  11. Type “list servers in site” and press Enter. (list all servers in that site with a corresponding number)
  12. Type “select server <number>” and press Enter, <number> refers to the domain controller to be removed.
  13. Type “quit” and press Enter (Metadata cleanup menu is displayed)
  14. Type “remove selected server” and press Enter.
  15. warning message. Read it, and if you agree, press Yes (It will say the object that is going to be removed)
  16.  Active Directory confirms that the domain controller was removed successfully (If you receive an error that the object could not be found, Active Directory might have already removed from the domain controller.)
  17. Type “quit”, and press Enter

Remove the server object from AD Sites

  1. Open Active Directory Sites and Services
  2. Expand appropriate site (in my case it is Default-First-Site-Name)
  3. Expand Servers
  4. The right click on the server object associated with the failed domain controller, and choose delete