Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to perform a metadata cleanup of an ADAM instance on a Windows Server 2003 R2-based computer: �DsRemoveDsServerW error 0x57(The parameter is incorrect.)�


View products that this article applies to.

Symptoms

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.)

↑ Back to the top


Resolution

To resolve this problem, follow these steps to perform the metadata cleanup:
  1. Open a command prompt, and then move to the directory where ADAM is installed. By default, this is the C:\Windows\ADAM directory.
  2. 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.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

For more information about metadata cleanup, click the following article number to view the article in the Microsoft Knowledge Base:
216498 How to remove data in Active Directory after an unsuccessful domain controller demotion

↑ Back to the top


Keywords: KB958839, kbbug, kberrmsg, kbtshoot, kbexpertiseadvanced, kbactivedirectory

↑ Back to the top

Article Info
Article ID : 958839
Revision : 1
Created on : 11/10/2008
Published on : 11/10/2008
Exists online : False
Views : 497