Saturday, July 25, 2009

Script for Metadata Cleanup

VBS script to do a Metadata Cleanup (remove references from AD), of a forcefully demoted/removed Domain Controllers.

Run script and type in the name of the DC from the list displayed..
· It removed DC references from AD.
· It removed DC references from AD sites and services snap-in.
· It removed DC references from DNS.

Awesome stuff!!

Supported on all Windows OS

Remove Active Directory Domain Controller Metadata
http://www.microsoft.com/technet/scriptcenter/scripts/ad/domains/addmvb04.mspx?mfr=true

The manual method of doing the same is using the NTDSUtil Tool on a good writable DC.

Clean up server metadata
http://technet.microsoft.com/en-us/library/cc736378(WS.10).aspx

How to remove data in Active Directory after an unsuccessful domain controller demotion
http://support.microsoft.com/kb/216498

No comments:

Post a Comment