trešdiena, 2012. gada 25. aprīlis

Remove offline Domain Controller from Active Directory Windows 2003

Remove offline Domain Controller from Active Directory Windows 2003

To remove offline domain controller before follow these instructiuons
http://www.petri.co.il/delete_failed_dcs_from_ad.htm
and
https://msmvps.com/blogs/ad/archive/2008/12/17/how-to-remove-a-failed-or-offline-dc.aspx

Roles must be transformed to working dc prior decommision
To see who is schema master role type in command prompt
regsvr32 schmmgmt.dll
Then transform all roles
Cleaning up metadata
commands in bold must be typed in command prompt



C:\Documents and Settings\Administrator>ntdsutil
ntdsutil: metadata cleanup
metadata cleanup: connections
server connections: connect to server ez
Binding to ez ...
Connected to ez using credentials of locally logged on user.
server connections: q
metadata cleanup: Select operation target
select operation target: list domains
Found 1 domain(s)
0 - DC=vs,DC=ost,DC=lv
select operation target: Select domain 0
No current site
Domain - DC=vs,DC=ost,DC=lv
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=vs,DC=ost,DC=lv
select operation target: Select site 0
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=vs,DC=ost,DC=lv
Domain - DC=vs,DC=ost,DC=lv
No current server
No current Naming Context
select operation target: List servers in site
Found 2 server(s)
0 - CN=EZ,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=
vs,DC=ost,DC=lv
1 - CN=EZX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=
vs,DC=ost,DC=lv
select operation target: Select server 1
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=vs,DC=ost,DC=lv
Domain - DC=vs,DC=ost,DC=lv
Server - CN=EZX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuratio
n,DC=vs,DC=ost,DC=lv
        DSA object - CN=NTDS Settings,CN=EZX,CN=Servers,CN=Default-First-Site-
Name,CN=Sites,CN=Configuration,DC=vs,DC=ost,DC=lv
        Computer object - CN=EZX,OU=Domain Controllers,DC=vs,DC=ost,DC=lv
No current Naming Context
select operation target: q
metadata cleanup: Remove selected server
Transferring / Seizing FSMO roles off the selected server.
Removing FRS metadata for the selected server.
Searching for FRS members under "CN=EZX,OU=Domain Controllers,DC=vs,DC=ost,D
C=lv".
Deleting subtree under "CN=EZX,OU=Domain Controllers,DC=vs,DC=ost,DC=lv".
The attempt to remove the FRS settings on CN=EZX,CN=Servers,CN=Default-First-S
ite-Name,CN=Sites,CN=Configuration,DC=vs,DC=ost,DC=lv failed because "Element
not found.";
metadata cleanup is continuing.
"CN=EZX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=vs
,DC=ost,DC=lv" removed from server "ez"
metadata cleanup: quit
ntdsutil: quit


After cleaning up metadata 
I removed stale records from all folders in DNS, maybe just need to reload dns, did not check whether they dissapoear themself when you remove hostA record of offline DC.

Nav komentāru:

Ierakstīt komentāru