How to remove a child domain

Hello Everyone
I'm not too sure how to remove a child domain, the child domain's domain controllers have been removed. Now how do I get rid of the actual domain, it's still listed in AD domains and trusts, and the remove button is greyed out While under management on the Parent domain.
LVL 1
Methodman85Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bhnmiCommented:
How did you remove the DC's?
0
mailtosinghsCommented:
Child domain is removed from AD when the last DC of child domain is removed

you need to select this is the last domain controller option in DCpromo
0
Methodman85Author Commented:
Unfortunately it was not possible to run DC promo on the child's domain controllers. We added this child domain as a result of a company merger, after that fell through the connections were just cut, so the domain, and domain controllers still remained in AD, although they were no longer physically preasent.
I used the ntdsutil to clean out the metadata for the child domain, and then proceeded to delete the Domain controllers from AD sites and services.
I then restarted all 4 of our domain controllers.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

bhnmiCommented:
Man, looks like the schema is hosed.
0
Methodman85Author Commented:
Indeed, I inherited this, lucky me.
Also when you do a list domains within the ntdsutil, the domain in question still comes up. Even though it's domain controllers have been removed from its member site.
0
Methodman85Author Commented:
There's gotta be a way
0
drchristopheCommented:
Here is a link from Technet on Removing Orphaned Domains from Active Directory.

http://support.microsoft.com/kb/230306

Lest us know how you get on, it's a intresting one.
0
Methodman85Author Commented:
That's exactly what I used, ntdsutil to clearout all the metadata, which then allowed me to delete the Domain controllers from AD sites and services.
So the domain controllers have been removed.. yet the domain still exsists within AD domains and trusts (the remove button is greyed out), and our GC (you can still select the domain as a searchable domain in AD user's and computers)
0
yolamCommented:
Man. The FSMO is wrong once the connetion is broken. Can you please check is the current Operation master is correct? I have tried to remove child domian inside domain and trust before with a lost connection. It is grayed as well. but forutnatly my connection is reesatblished once I saw it.  Let's us know the result.  Intresting.
0
drchristopheCommented:
Ok....I found this article on another site. Looks like the author had the same issue as you and also tried the above article to no avail.

Please can you try this:

As I already mentioned that I was unable to resolve the issue by the steps provided in
http://support.microsoft.com/kb/216498/en-us 
http://support.microsoft.com/kb/230306 

I googled for this issue and after trying many solution i came across something which works .
I hope it will help others also so I m sharing the step with u

1. Click Start, click Run, type ntdsutil, and then press ENTER.
2. At the Ntdsutil command prompt, type domain management, and then press ENTER.
3. Type connections, and then press ENTER.
4. Type connect to server Domain_Controller_Name, and then press ENTER.
5. After the following message appears, type quit, and then press ENTER:
Connected to Domain_Controller_Name using credentials of locally logged on user
6. At the domain management prompt, type list, and then press ENTER.
7. Note the following entry:
DC=DomainDnsZones,DC=Child_Domain, DC=extension
For example, if the child domain is Contoso.com, note the following entry:
DC=DomainDnsZones,DC=contoso,DC=com
8. Type the following command, and then press ENTER.
delete nc dc=domaindnszones,dc=Child_Domain,dc=extension
Note In this command, Child_Domain represents the name of the child domain that you want to remove. For example, if the child domain is Contoso.com, type the following command, and then press ENTER:
delete nc dc=domaindnszones,dc=contoso,dc=com
9. Quit Ntdsutil.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Methodman85Author Commented:
I can't get the above to work, just a syntax error so please point out what I'm doing wrong.
After i type list I get the list of the Naming Contexts

0 - CN=Configuration,DC=domain1,DC=com
1 - DC=domain1,DC=com
2 - CN=Schema,CN=Configuration,DC=domain1,DC=com
3 - DC=domain2,DC=com
4 - DC=domain3,DC=domain2,DC=com      <----- Domain 3 is the child domain I need to remove.

So i typed
delete nc dc=domaindnszones,dc=domain3,dc=com      
Error 800070057 parsing input - illegal syntax?

also tried
delete nc dc=dmaondnszones,dc=domain3,dc=domain2,dc=com
Error 800070057 parsing input - illegal syntax?
0
Methodman85Author Commented:
also tried
* delete nc dc=domaindnszones,dc=domain3,dc=domain2,dc=com
Error 800070057 parsing input - illegal syntax?
0
yolamCommented:
I think is case sensitive.......
0
drchristopheCommented:
This is the official step by step guide copied and pasted from MS, have you performed this all on DC's or just one. Not sure if it matters but worth a go.

RESOLUTION
To resolve this issue, follow these steps:1. Click Start, click Run, type ntdsutil, and then press ENTER.
2. At the Ntdsutil command prompt, type domain management, and then press ENTER.
3. Type connections, and then press ENTER.
4. Type connect to server Domain_Controller_Name, and then press ENTER.
5. After the following message appears, type quit, and then press ENTER:
Connected to Domain_Controller_Name using credentials of locally logged on user
6. At the domain management prompt, type list, and then press ENTER.
7. Note the following entry:
DC=DomainDnsZones,DC=Child_Domain, DC=extension
For example, if the child domain is Contoso.com, note the following entry:
DC=DomainDnsZones,DC=contoso,DC=com
8. Type the following command, and then press ENTER.
delete nc dc=domaindnszones,dc=Child_Domain,dc=extension
Note In this command, Child_Domain represents the name of the child domain that you want to remove. For example, if the child domain is Contoso.com, type the following command, and then press ENTER:
delete nc dc=domaindnszones,dc=contoso,dc=com
9. Quit Ntdsutil.
0
Methodman85Author Commented:
Thanks,
If you look at my post, everything up until the very last step worked how it was suppose to.
The naming text came up, the steps then say to enter in the child domain you would like to delete.
I also used all lowercase

0 - CN=Configuration,DC=domain1,DC=com
1 - DC=domain1,DC=com
2 - CN=Schema,CN=Configuration,DC=domain1,DC=com
3 - DC=domain2,DC=com
4 - DC=domain3,DC=domain2,DC=com      <----- Domain 3 is the child domain I need to remove.

So i typed
delete nc dc=domaindnszones,dc=domain3,dc=com      
Error 800070057 parsing input - illegal syntax?
also tried
delete nc dc=domaindnszones,dc=domain3,dc=domain2,dc=com
Error 800070057 parsing input - illegal syntax?

I've done this on both of our domain controllers, and their backups. I must be doing something wrong, I just don't know what.

0
Methodman85Author Commented:
Err... Bump?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.