Windows Server 2016-Clean up residual domain control information

Source: Internet
Author: User
Tags to domain

This chapter immediately follows, when the problem of domain control in production environment can not be repaired, on the one hand we need to consider seizing the FSMO role, on the other hand we need to consider the problem is to clean up the current domain control residual information, to prevent residual data information caused by user authentication or resolution of the problem. This chapter describes how to clean up the current residual domain control information with the Ntdsutil command. The following are the steps:

1. View Ntdsutil Help information:

2. Enter ntdsutil at the command line :

3. Enter Metadata cleanup to clean up objects that are not used by the server:

4. Enter connections optional connection domain controller:

5. Enter connect to domain azureyun.local Enter the domain name you want to connect:

6. Enter quit to quit:

7. Enter the domain selected by the Select operation target:

8. Enter list domains to list all domains:

9. Enter Select domain 0 to choose the domain for which you want to remove the DCS:

10. Enter list sites to list the site where the domain is located:

11. Enter Select site 0 to choose the site where the domain controller you want to delete resides:

12. Enter list servers in site to list the servers that exist in the site:

13. Enter Select server 1 to remove the domain controller:

14. Enter quit to quit:

15. Enter remove selected server to delete the selected server in database mode, and then click Yes to proceed with the pop-up box:

16. Enter quit to quit:

17. Enter quit to quit:

18. View current Computer information:

19. Manually delete the remaining server information under Active Directory Sites and Services:

If you are prompted to delete the server, select Yes to continue:

20. Clean up the residual DNS information and step through and clean up useless DNS records:

The entire cleanup residue domain control information operation is complete.


The finishing steps are as follows:

c:/>ntdsutil ntdsutil: metadata cleanup    cleanup objects that are not used by the server  metadata  cleanup: connections    Select Connect domain controller target  server connections: connect to  domain dcxr.com    Enter the domain name you want to connect to  server connections: quit metadata  cleanup: select operation target    Selected domain  select operation target:  list domains       list all domain  select operation target:  select domain 0    Select the domain select operation target of the domain controller that you want to delete:  list sites        list the site select operation  in the domain target: select site 0     Select the site select operation  of the domain controller you want to remove target: list servers in site    lists the servers that exist in the site  select operation  target: select server 1     Select the domain controller to remove  select operation target: quit  metadata cleanup: remove selected server    Delete selected server  in database mode Metadata cleanup: quit ntdsutil: quit


Windows Server 2016-Clean up residual domain control information

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.