How to remove child domain and other naming context from forest root domain

Jul 4th, 2009

In previous post I outline some guidelines on how to remove demoted domain controller from domain using ntdsutil.exe. In this post, I will give guides on removing a naming context, be it a child domain or a DNS zone from Active Directory usning ntdsutil.exe.

First. make sure that no domain controller or replica objects exists in your forest for the domain in question. If they do, use previous steps [link here] to remove the objects before proceeding to delete the domain from the forest.

Warning!! The improper use of ntdsutil can result to loss of active directory functionalities.

Make sure you have the Microsoft support tools installed. Ad you will need enterprise admin for this procedures.

1- Click start, run, type cmd.  This will bring the command prompt. At command prompt, type ntdsutil.exe

2- type: metadata cleanup, press enter

3- type: connections, press enter

4- type: connect to server ServerName, press enter (ServerName is name of any domain controller in the root domain)

5- type: q, press enter

6- type: select operation target, press enter

7-type: list domains, press enter

8-type: select domain domainNumber, press enter (DomainNumber is the numerical value for domain listed in step 7 above. Only select child domain you wish to delete/removed)

steps 1-8

steps 1-8

9-type: q, press enter

10-type: remove selected domain, press enter

11-**You will receive warning pop up message, read carefully and make sure that is the correct server,the select “YES”.

steps 9-11

steps 9-11

How to remove Naming Context

1- Follow steps 1-6 above

2- type: s o t, press enter

3-On “select operation target:”, type list naming contexts, press enter

4-type:select naming context contextNumber, press enter (namingContext is the numerical value for naming context listed in step 3 above. Only select naming context you wish to delete/removed)

steps 1-4

steps 1-4

5-type: q, press enter

6-type:remove selected naming context, press enter

7-You will receive warning pop up message, read carefully and make sure that is the correct server,the select “YES”.

steps 5-7

steps 5-7

Be Sociable, Share!
No comments yet.