How do I remove a nonexistent domain from Active Directory?

A. Windows 2000 tracks each domain in the metadata. If you remove all the domain controllers (DCs) for a domain and you don’t select This is the last domain controller in the domain, when you run DCPROMO to demote the DC to a normal server, DCPROMO won’t clean up the domain information, and the server’s domain information will remain.

You can use the utility NTDSUTIL to remove a domain from the metadata. (In the following code, enter the commands in bold.)


D:\&gt;<b>ntdsutil</b><br>
ntdsutil: <b>metadata cleanup</b><br>
metadata cleanup: <b>connections</b>


Connect to a server or domain (e.g., the parent domain) that recognizes the domain you want to delete. (In the following code, enter the commands in bold.)


server connections: <b>connect to server titanic</b><br>
Binding to titanic ...<br>
Connected to titanic using credentials of locally logged on user<br>
server connections: <b>quit</b><br>
metadata cleanup: <b>select operation target</b>


Next, select the domain you want to delete. (In the following code, enter the commands in bold.)

select operation target: <b>list domains</b><br>
Found 3 domain(s)<br>
0 - DC=savilltech,DC=com<br>
1 - DC=dev,DC=savilltech,DC=com<br>
2 - DC=deleteme,DC=savilltech,DC=com<br>
select operation target: <b>select domain 2</b><br>
Site - CN=London,CN=Sites,CN=Configuration,DC=savilltech,DC=com<br>
Domain - DC=deleteme,DC=savilltech,DC=com<br>
No current server<br>
No current Naming Context<br>
select operation target: <b>quit</b><br>
metadata cleanup: <b>remove selected domain</b>


In the confirmation dialog box, which the Screen shows, click Yes.



Click here to view image

Close the utility. (In the following code, enter the commands in bold.)


"DC=deleteme,DC=savilltech,DC=com" removed from server "titanic"<br>
metadata cleanup: <b>quit</b><br>
ntdsutil: <b>quit</b><br>
Disconnecting from titanic ...


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish