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.

"DsRemoveDsDomainW error 0x2015" 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


View products that this article applies to.

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

↑ Back to the top


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.

↑ Back to the top


Resolution

To resolve this issue, follow these steps:
  1. Click Start, click Run, type ntdsutil, and then press ENTER.
  2. At the Ntdsutil command prompt, type domain management, and then press ENTER.
  3. Type connections, and then press ENTER.
  4. Type connect to server Domain_Controller_Name, and then press ENTER.
  5. After the following message appears, type quit, and then press ENTER:
    Connected to Domain_Controller_Name using credentials of locally logged on user
  6. At the domain management prompt, type list, and then press ENTER.
  7. Note the following entry:
    DC=DomainDnsZones,DC=Child_Domain, DC=extension
    For example, if the child domain is Contoso.com, note the following entry:
    DC=DomainDnsZones,DC=contoso,DC=com
  8. Type the following command, and then press ENTER.
    delete nc dc=domaindnszones,dc=Child_Domain,dc=extension
    Note In this command, Child_Domain 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
  9. Quit Ntdsutil.

↑ Back to the top


Keywords: kbentirenet, kbnetwork, kbwinservnetwork, kbtshoot, kbprb, kb

↑ Back to the top

Article Info
Article ID : 887424
Revision : 4
Created on : 4/10/2019
Published on : 4/10/2019
Exists online : False
Views : 623