Delete a subdomain when the server of the subdomain is broken.

Source: Internet
Author: User
Tags subdomain

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 :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.