Microsoft KB Archive/887424

= &quot;DsRemoveDsDomainW error 0x2015&quot; error message when you use Ntdsutil to try to remove metadata for a domain controller that was removed from your network in Windows Server 2003 =

Article ID: 887424

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)

-





SYMPTOMS
When you use the Ntdsutil command-line tool to try to remove metadata for a domain controller that was removed from your network, you may receive the following error message:

DsRemoveDsDomainW error 0x2015 (The directory service can perform the requested operation only on a leaf object.)



CAUSE
This issue may occur when the application partition naming context (DC=DomainDnsZones) for the child domain is not removed when Active Directory is removed from the domain controller.



RESOLUTION
To resolve this issue, follow these steps:  Click Start, click Run, type ntdsutil, and then press ENTER. At the Ntdsutil command prompt, type domain management, and then press ENTER. Type connections, and then press ENTER. Type connect to server, and then press ENTER. After the following message appears, type quit, and then press ENTER:

Connected to  using credentials of locally logged on user

 At the domain management prompt, type list, and then press ENTER.</li> Note the following entry:

DC=DomainDnsZones,DC=, DC=

For example, if the child domain is Contoso.com, note the following entry:

DC=DomainDnsZones,DC=contoso,DC=com

</li> Type the following command, and then press ENTER.

delete nc dc=domaindnszones,dc= ,dc=

Note In this command,  represents the name of the child domain that you want to remove. For example, if the child domain is Contoso.com, type the following command, and then press ENTER:

delete nc dc=domaindnszones,dc=contoso,dc=com

</li> Quit Ntdsutil.</li></ol>

Keywords: kbnetwork kbwinservnetwork kbtshoot kbprb KB887424

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.