Consider the following scenario. You are running an instance of Active Directory Application Mode (ADAM) on a Windows Server 2003 R2-based computer. You try to perform metadata cleanup. In this scenario, when you run the Remove selected server
command, you receive the following error message:
DsRemoveDsServerW error 0x57(The parameter is incorrect.)
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:
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.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about metadata cleanup, click the following article number to view the article in the Microsoft Knowledge Base:
How to remove data in Active Directory after an unsuccessful domain controller demotion