I have a problem deleting an orphaned subdomain from a Windows Server 2008 R2 AD. The situation is as follows:
- dcpromo failed in demoting the only DC of the subdomain. The DC was therefore demoted forcefully.
- No DC for the subdomain is in the AD at the moment (as shown in GUI).
- If I use ntdsutil and connect to the sub domain, it says that there is no site, no server and no naming context for the domain.
- The subdomain shows in AD domains and trusts, but I cannot do anything, because it cannot find a DC for the subdomain.
If I call "remove selected domain" for the subdomain, the tool asks for confirmations but then fails with error 0x2162, i. e. it tells me that there are still DCs left for the subdomain. However, I cannot delete any DCs or naming contexts using ntdsutil
, because it does not show any.
Any suggestions on removing the domain are welcome.