How to Remove a problem dc from the domain manually

To remove the failed DC from the domain,first degrade the Domain Controller.
These are the steps can do for this tasks

1    dcpromo /forceremoval

Run the dcpromo from the DC you want to demote

2    from adsiedit.msc or ntdsutil remove the metadata manually

3    remove the dc object from DC OU

The objects under ou domain controllers remove the machine

4    To remove the failed server object from DNS

remove hostname and other dns records from the zone

C:\>ntdsutil
ntdsutil: metadata cleanup
metadata cleanup: connections
server connections: connect to server mog-in-s01
Binding to mog-in-s01 …
DsBindW error 0x80090322(The target principal name is incorrect.)
server connections: connect to server mog-in-s01.mogin.com
Binding to mog-in-s01.mogin.com …
DsBindW error 0x80090322(The target principal name is incorrect.)
server connections: connect to server mog-in-s02
Binding to mog-in-s02 …
Connected to mog-in-s02 using credentials of locally logged on user.
server connections: quit
metadata cleanup: select operation target
select operation target: list domains
Found 1 domain(s)
0 – DC=mogin,DC=com
select operation target: select domain 0
No current site
Domain – DC=mogin,DC=com
No current server
No current Naming Context
select operation target: list sites
Found 1 site(s)
0 – CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mogin,DC=com
select operation target: select site 0
Site – CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mogin,DC=c
om
Domain – DC=mogin,DC=com
No current server
No current Naming Context
select operation target: list servers in site
Found 2 server(s)
0 – CN=MOG-IN-S01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuratio
n,DC=mogin,DC=com
1 – CN=MOG-IN-S02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuratio
n,DC=mogin,DC=com
select operation target: select server 1
Site – CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mogin,DC=c
om
Domain – DC=mogin,DC=com
Server – CN=MOG-IN-S02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configu
ration,DC=mogin,DC=com
DSA object – CN=NTDS Settings,CN=MOG-IN-S02,CN=Servers,CN=Default-First-
Site-Name,CN=Sites,CN=Configuration,DC=mogin,DC=com
DNS host name – mog-in-s02.mogin.com
Computer object – CN=MOG-IN-S02,OU=Domain Controllers,DC=mogin,DC
=com
No current Naming Context
select operation target: quit
metadata cleanup: remove selected server
“CN=MOG-IN-S02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configu
ration,DC=mogin,DC=com” removed from server “MOG-IN-S01”
metadata cleanup: quit
ntdsutil: quit

Notes to Remember

• To perform , you must be a member of the Domain Admins group (in the forest root domain) or the Enterprise Admins group in Active Directory, or you must have been delegated the appropriate authority.
• You must first demote the domain controllers from the domain.
• If the domain has child domains, it cannot be deleted.
• If this is the last domain in the forest, demoting this domain controller will also delete the forest.
• If the domain controller currently holds the domain naming master or schema master operations roles, transfer the role to domain controller in a different domain before removing the domain.

Advertisements

Posted on April 28, 2011, in Uncategorized, Windows. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: