Differences
This shows you the differences between two versions of the page.
— | windows:ad:clean_up_server_metadata [2019/10/31 09:06] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Clean Up Server Metadata using cmd ====== | ||
+ | You can clean up metadata by using Ntdsutil.exe, | ||
+ | To clean up server metadata by using Ntdsutil | ||
+ | * Open a command prompt as an administrator: | ||
+ | * 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 metadata cleanup: prompt, type the following command, and then press ENTER: **remove selected server < | ||
+ | |||
+ | ^ Value ^ Description ^ | ||
+ | | ntdsutil: metadata cleanup | Initiates removal of objects that refer to a decommissioned domain controller. | | ||
+ | | remove selected server | Removes objects for a specified, decommissioned domain controller from a specified server. | | ||
+ | | < | ||
+ | | on < | ||
+ | |||
+ | * 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 the metadata cleanup: and ntdsutil: prompts, type quit, and then press ENTER. | ||
+ | * 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 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. |