Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:ad:clean_up_server_metadata

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

windows:ad:clean_up_server_metadata [2017/08/17 15:56]
tplecko created
windows:ad:clean_up_server_metadata [2017/08/17 15:58] (current)
tplecko
Line 3: Line 3:
 To clean up server metadata by using Ntdsutil To clean up server metadata by using Ntdsutil
  
-  ​Open a command prompt as an administrator:​ On the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, provide Enterprise Admins credentials,​ if required, and then click Continue. +  ​Open a command prompt as an administrator:​ On the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, provide Enterprise Admins credentials,​ if required, and then click Continue. 
-  ​At the command prompt, type the following command, and then press ENTER: **ntdsutil** +  ​At the command prompt, type the following command, and then press ENTER: **ntdsutil** 
-  ​At the ntdsutil: prompt, type the following command, and then press ENTER: **metadata cleanup** +  ​At the ntdsutil: prompt, type the following command, and then press ENTER: **metadata cleanup** 
-  ​At the metadata cleanup: prompt, type the following command, and then press ENTER: **remove selected server <​ServerName>​** Or **remove selected server <​ServerName1>​ on <​ServerName2>​**+  ​At the metadata cleanup: prompt, type the following command, and then press ENTER: **remove selected server <​ServerName>​** Or **remove selected server <​ServerName1>​ on <​ServerName2>​** 
 ^ Value ^ Description ^ ^ Value ^ Description ^
 | ntdsutil: metadata cleanup | Initiates removal of objects that refer to a decommissioned domain controller. | | ntdsutil: metadata cleanup | Initiates removal of objects that refer to a decommissioned domain controller. |
Line 13: Line 14:
 | on <​ServerName2>​ | Specifies removing server metadata on <​ServerName2>,​ the Domain Name System (DNS) name of the domain controller to which you want to connect. If you have identified replication partners in preparation for this procedure, specify a domain controller that is a replication partner of the removed domain controller. | | on <​ServerName2>​ | Specifies removing server metadata on <​ServerName2>,​ the Domain Name System (DNS) name of the domain controller to which you want to connect. If you have identified replication partners in preparation for this procedure, specify a domain controller that is a replication partner of the removed domain controller. |
  
-  ​In Server Remove Configuration Dialog, review the information and warning, and then click Yes to remove the server object and metadata. +  ​In Server Remove Configuration Dialog, review the information and warning, and then click Yes to remove the server object and metadata. 
-    ​At this point, Ntdsutil confirms that the domain controller was removed successfully. If you receive an error message that indicates that the object cannot be found, the domain controller might have been removed earlier. +    ​At this point, Ntdsutil confirms that the domain controller was removed successfully. If you receive an error message that indicates that the object cannot be found, the domain controller might have been removed earlier. 
-  ​At the metadata cleanup: and ntdsutil: prompts, type quit, and then press ENTER. +  ​At the metadata cleanup: and ntdsutil: prompts, type quit, and then press ENTER. 
-  ​To confirm removal of the domain controller:​ +  ​To confirm removal of the domain controller:​ 
-    ​Open Active Directory Users and Computers. In the domain of the removed domain controller, click Domain Controllers. In the details pane, an object for the domain controller that you removed should not appear. +    ​Open Active Directory Users and Computers. In the domain of the removed domain controller, click Domain Controllers. In the details pane, an object for the domain controller that you removed should not appear. 
-    ​Open Active Directory Sites and Services. Navigate to the Servers container and confirm that the server object for the domain controller that you removed does not contain an NTDS Settings object. If no child objects appear below the server object, you can delete the server object. If a child object appears, do not delete the server object because another application is using the object. +    ​Open Active Directory Sites and Services. Navigate to the Servers container and confirm that the server object for the domain controller that you removed does not contain an NTDS Settings object. If no child objects appear below the server object, you can delete the server object. If a child object appears, do not delete the server object because another application is using the object.
- +
windows/ad/clean_up_server_metadata.txt · Last modified: 2017/08/17 15:58 by tplecko