You are here

Remove Offline DC from Active directory

shroman's picture

This article describes the procedure of removing failed not restorable DC controller from the forest.
You should use this procedure ONLY if you are sure that you are deleting a DC that will never be available again.

Procede with your own risk...
Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.
Metadata cleanup using ntdsutil.exe:
Start->Run->cmd
#> ntdsutil
ntdsutil: metadata cleanup
metadata cleanup:
>>
metadata cleanup: connections
server connections:
>>
server connections: connect to server YourSRV
Binding to YourSRV ...
Connected to YourSRV using credentials of locally logged on user.
server connections:
>>
server connections: q
metadata cleanup:
>>
metadata cleanup: Select operation target
select operation target:
>>
select operation target: list domains
Found 1 domain(s)
0 - DC=domain,DC=local
select operation target:
>> select the opropriate number and hit enter >>
select operation target: Select domain 0
No current site
Domain - DC=domain,DC=local
No current server
No current Naming Context
select operation target:
>>
select operation target: List sites
Found 1 site(s)
0 - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
select operation target:
>> select the opropriate number and hit enter >>
select operation target: Select site 0
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
Domain - DC=domain,DC=local
No current server
No current Naming Context
select operation target:
>>
select operation target: List servers in site
Found 2 server(s)
0 - CN=SERVER1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
1 - CN=SERVER2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
select operation target:
>> Select the server you would like to delete >>
select operation target: Select server 0
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
Domain - DC=dpetri,DC=net
Server - CN=SERVER2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
DSA object - CN=NTDS Settings,CN=SERVER2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=local
DNS host name - server2.domain.local
Computer object - CN=SERVER2,OU=Domain Controllers,DC=domain,DC=local
No current Naming Context
select operation target:
>>
select operation target: q
metadata cleanup:
>>!!!!! procedue to deletion procedure !!!!!!!!!!!!!>>
type -> remove selected server
>>>>>>>
At this poit you are facing a warning message waiting for confirmation....
If a server you are removing have had any FSMO roles on it, the roles are going to be automaticaly transfered to the active directory controller.
Tags: