To resolve this problem, follow these steps to perform the metadata cleanup:
- Open a command prompt, and then move to the directory where ADAM is installed. By default, this is the C:\Windows\ADAM directory.
-
Type the following commands, and then press ENTER:
dsmgmt l
metadata cleanup
Remove Selected Server "CN=ServerName$InstanceName,CN=Servers,CN=SiteName,CN=Sites,CN=Configuration,CN=GUID of ADAM Instance" on ServerName:PortNumber
You will receive a confirmation message that states that the selected instance is removed from the specified server. If the server holds any flexible single master operations (FSMO) roles, you may receive the following error message:
LDAP error 0x5e(94 (No Result Present in Message)
If this error occurs, you must manually seize the roles, and then remove the instance.