Cleaning Up Server Metadata
On domain controllers that are running Windows Server 2008, you can use Active Directory Users and Computers to clean up server metadata.
Deleting the computer object in the Domain Controllers organizational unit (OU) initiates the cleanup process, and all related tasks are performed automatically.
1. Open Active Directory Users and Computers by clicking Start, clicking Administrative Tools, and then clicking Active Directory Users And Computers.
2. You must be connected to a domain controller in the domain of the domain controller that you forcibly removed.
If not or you are unsure if you are, right-click the Active Directory Users And Computers node and then click Change Domain Controller.
Click the name of a domain controller in the appropriate
domain, and then click OK.
3. Expand the domain of the domain controller that you forcibly removed, and then click Domain Controllers.
4. In the details pane, right-click the computer object of the retired domain controller, and then click Delete.
5. In the Active Directory Domain Services dialog box, click Yes to confirm that you want to delete the computer object
6. In the Deleting Domain Controller dialog box, select This Domain Controller Is Permanently Offline And Can No Longer Be Demoted, and then click Delete.
7. If the domain controller was a global catalog server, in the Delete Domain Controller dialog box, click Yes to continue with the deletion.
8. If the domain controller currently holds one or more operations master roles,click OK to move the role or roles to the domain controller.
Although you cannot change this domain controller at the present time, you can move the role once the metadata cleanup procedure is completed.
On domain controllers that are running Windows Server 2003 with Service Pack 1 (SP1), Windows Server 2003 with Service Pack 2 (SP2), Windows Server 2003
R2, or Windows Server 2008, you also can perform metadata cleanup by using the Ntdsutil command-line tool.
1. Click Start, right-click Command Prompt, and then click Run As Administrator to open an elevated command prompt.
2. At the command prompt, enter the following command: ntdsutil.
3. At the ntdsutil prompt, enter the following command: metadata cleanup.
4. At the metadata cleanup prompt, enter the following command if you are logged on to the domain of the domain controller that you forcibly removed:
remove selected server RetiredServer where RetiredServer is the distinguished name of the retired domain controller. Otherwise, enter the
following command: remove selected server RetiredServer on Target Server where RetiredServer is the distinguished name of the retired domain
controller and where TargetServer is the DNS name of a domain controller in the domain of the domain controller that you forcibly removed.
5. When prompted with the Server Remove Configuration dialog box, read the details. Click Yes to remove the server object and related metadata.
Ntdsutil will then confirm that the server object and related metadata was removed successfully. If you receive an error message that indicates that the
object cannot be found, the server object and related metadata might have been removed previously.
6. At the metadata cleanup prompt, enter the following command: quit.
7. At the ntdsutil prompt, enter the following command: quit.