How to Remove Child Domain in Windows Server 2016

When you are removing a child domain with NTDSUTIL you will receive the following error:

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

If this happen, follow below mentioned steps. When you are done you can follow this article to remove child domain.

Open PowerShell with elevated privileges and execute the following commands in sequence.

read more

How to Remove Orphaned Domains from Active Directory Windows Server 2016

When domain controllers are taken offline without being demoted first, the domain metadata is still left in Active Directory. This article illustrates how to remove that domain metadata with the help of NTDSUTIL utility.

Open PowerShell with elevated privileges and execute the following commands in sequence.

Step 1. Type ntdsutil and hit enter from keyboard

read more