C: \> ntdsutil
Ntdsutil: Metadata cleanup-clear unused server objects
Metadata cleanup: Select Operation target-selected site, server, domain, role and naming context
Select Operation target: connections-connect to a specific domain controller
Server connections: connect to server adddc-connect to adddc
Bind to adddc...
Use the user's creden。 to connect to adddc.
Server connections: Quit-Return to the directory of the previous Layer
Select Operation target: List site-list sites in the enterprise (1 site found, marked as 0)
Locate site 1
0-Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
Select Operation target: Select site 0-set the site marked as 0 to the site selected
Site-Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
No current domain
No current server
Current naming context
Select Operation target: List domains-list all fields that contain cross references
Locate 1 domain
0-Dc = Acme, Dc = com
Select Operation target: Select domain 0-specify the domain marked as 0 as the selected domain
Site-Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
Domain-Dc = Acme, Dc = com
No current server
Current naming context
Select Operation target: list servers for domain in site-list servers in the selected domain and site (find two servers: 0-adddemo.acme.com and 1-adddc.acme.com)
Find 2 servers
0-Cn = addemo, Cn = servers, Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
1-Cn = adddc, Cn = servers, Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
Select Operation target: Select Server 0-set the server (addemo) marked as 0 as the selected server-that is, the DC to be deleted
Site-Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
Domain-Dc = Acme, Dc = com
Server-Cn = addemo, Cn = servers, Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com
DSA object-Cn = NTDs settings, Cn = addemo, Cn = servers, Cn = default-first-site-name, Cn = sites, Cn = configur
DNS host name-addemo.acme.com
Computer object-Cn = addemo, ou = domain controllers, Dc = Acme, Dc = com
Current naming context
Select Operation target: Quit-Return to the directory of the previous Layer
Metadata cleanup: Remove Select Server-delete DS objects from the selected Server
In the pop-up dialog box, select "yes ",
"Cn = addemo, Cn = servers, Cn = default-first-site-name, Cn = sites, Cn = configuration, Dc = Acme, Dc = com" is deleted, slave server "adddc"
Now, the DS object addemo.acme.com will say goodbye to your ad :)