DC demotion fails: unable to determine the ownership of floating single-master operation roles, last replica of application directory partitions, or Access is denied. Fix the cause, or force removal and clean up metadata.
Home › Guides › DC demotion fails
Last updated 20 November 2026
A graceful demotion first tries to outbound-replicate every locally held naming context, so no unique changes are lost. Whenever that, or a dependency such as network connectivity, name resolution, authentication, AD replication or a critical AD object, fails, the wizard (or Uninstall-ADDSDomainController) stops. Microsoft's documented cases:
DC=DomainDnsZones or DC=ForestDnsZones: the infrastructure role of that DNS partition points at a deleted DC. Point fSMORoleOwner at a live DC.DC=MSTAPI: tapicfg remove), or the replica with ntdsutil.Fix the cause and demote again. Force removal (Uninstall-ADDSDomainController -ForceRemoval) is the last resort: it loses unreplicated changes and leaves metadata you must clean up straight away.
| Message | Cause | Fix |
|---|---|---|
| Could not transfer the remaining data in directory partition DC=DomainDNSZones (or ForestDNSZones)... unable to determine the ownership of floating single-master operation roles | The DC can't outbound-replicate to the partition's infrastructure master, whose NTDS Settings object is deleted (0ADEL in fSMORoleOwner) | Set fSMORoleOwner to a live DC in ADSI Edit and let it replicate in; or force removal |
| This domain controller holds the last replica of the following application directory partitions | An application partition (for example DC=MSTAPI, created by the Configure Your Server wizard) has no other replica | tapicfg remove, or ntdsutil partition management remove nc replica |
| Could not configure the computer account ... on the remote Active Directory Domain Controller. "Access is denied" | Missing user right or permission for the demoting account | Same checks as for promotion |
| Any other graceful demotion failure | Connectivity, name resolution, authentication, replication, or the location of a critical AD object | Fix the dependency; force removal only if you can't |
Title bar Active Directory Domain Services Installation Wizard:
The operation failed because: Active Directory Domain Services could not transfer the remaining data in directory partition DC=DomainDNSZones,DC=<DNS domain name> to Active Directory Domain Controller \\<DNS name of helper DC used to service demotion> "The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles."
dcpromo.log shows the role transfer for that partition followed by an NTDS Replication warning 2091:
[INFO] Transferring operations master roles owned by this Active Directory Domain Controller in directory partition DC=DomainDnsZones,DC=contoso,DC=com to Active Directory Domain Controller \\<DNS name of helper DC>... [INFO] EVENTLOG (Warning): NTDS Replication / Replication : 2091
Look at the partition's infrastructure object, CN=Infrastructure,DC=DomainDnsZones,DC=contoso,DC=com, in Ldp or ADSI Edit. The telling line is:
fSMORoleOwner: CN=NTDS Settings\0ADEL:<NTDS Settings object GUID>,CN=<hostname of last DC to host the partition infrastructure role>,CN=Servers,CN=<site name>,CN=Sites,CN=Configuration,DC=contoso,DC=com
0ADEL means the role owner's NTDS Settings object has been deleted.ForestDnsZones.Why demotion stops: the DC can't outbound-replicate to the infrastructure master of that partition, and the demotion is aborted to avoid data loss. For DNS partitions it protects live and deleted DNS records, their ACLs and metadata such as registration and deletion dates.
Fix (check both DomainDnsZones and ForestDnsZones; when one points at a deleted DC, the other often does too, and both should be owned by live DCs that run the DNS Server role and host the partition):
fSMORoleOwner on the partition's CN=Infrastructure object to the NTDS Settings DN of a live DC that was a direct replication partner of the original role owner.adprep /rodcprep failing on the same condition).This domain controller holds the last replica of the following application directory partitions: DC=MSTAPI,DC=yourdomain,DC=com
Application partitions (non-domain naming contexts) hold dynamic data with their own replication scope, and can replicate to any set of DCs in the forest. The DC=MSTAPI partition is created automatically when a DC was installed with the old Configure Your Server wizard.
If the partition has the default name Mstapi and nothing uses it, remove it with Tapicfg:
tapicfg remove /directory:mstapi.<your_domain.com>
If the partition was created by hand or by another program, remove this DC's replica with ntdsutil:
ntdsutil partition management connections connect to server <yourservername> quit list remove nc replica <ApplicationDirectoryPartition> <DomainController> q q
list shows the naming contexts on the server. Then demote; you may have to restart the DC first. When you remove the last DC in the domain, the wizard's Removal Options page (and -RemoveApplicationPartitions) remove the application partitions for you; by default the only extra ones are the Domain DNS and Forest DNS zones, and anything else is a non-Windows partition.
The operation failed because: Active Directory Domain Services could not configure the computer account <hostname>$ to the remote Active Directory Domain Controller account <fully qualified name of helper DC>. "Access is denied"
dcpromo.log reads NtdsDemote returned 5 and Failed to demote the directory service (5). The checks (Default Domain Controllers Policy, the trusted-for-delegation user right, SYSVOL, policy links) are the same as for promotion: Access is denied during DC promotion or demotion.
The ADDSDeployment cmdlet replaces dcpromo:
Uninstall-ADDSDomainController Uninstall-ADDSDomainController -LastDomainControllerInDomain -RemoveApplicationPartitions
The first removes AD DS from an additional DC and prompts for the new local Administrator password (it must not be empty). The second is the minimum for the last DC in a domain, which needs Enterprise Admins membership because it removes the domain (and the forest, if it is the last domain). Demoting an additional DC needs Domain Admins. Microsoft recommends you don't use -NoRebootOnCompletion outside testing; the server must restart to work as a member server.
Use it only when the DC can't reach other DCs and there is no reasonable way to fix that, or when you can't resolve the dependency after detailed troubleshooting. Microsoft's valid scenarios: no DC is available in the parent domain when you demote the last DC of a child domain; a name resolution, authentication, replication or object dependency you can't resolve; a DC that hasn't replicated inbound changes for longer than the tombstone lifetime (don't recover such a DC unless it is the only chance of recovering its domain); or no time for deeper troubleshooting.
Uninstall-ADDSDomainController -ForceRemoval -DemoteOperationMasterRole
-ForceRemoval removes AD DS without contacting other DCs; -DemoteOperationMasterRole lets the forced demotion continue when the DC holds an operations master role. In Server Manager the option is Force the removal of this domain controller, and the Warnings page then lists the FSMO roles the DC holds. On old systems the command was dcpromo /forceremoval.
What you lose: every change that hadn't replicated off the DC: added, deleted or modified users, computers, groups, trusts, Group Policy and configuration, and attribute changes such as passwords and group membership. The server ends up as a workgroup member server with a registry-based SAM; installed programs stay.
Before you start, make sure you can boot into Directory Services Restore Mode and know its password (reset it with ntdsutil Set DSRM Password if needed). In Windows Server 2008 and later you can also run a forced removal from DSRM or with AD DS stopped.
Forced demotion leaves orphaned metadata on the remaining DCs, which Microsoft calls the root cause of a significant share of its AD DS support cases. Do these on a surviving DC straight away:
ntdsutil remove selected server; steps in event 2087).remove selected server deletes the NTDS Settings object but not the parent server object.If you removed a whole domain with remove selected domain, wait until every DC and global catalog has dropped its objects before you create a domain with the same name.
Look up NTDS Replication event 2091 and other directory service events in the Windows Event ID Lookup, copy the Uninstall-ADDSDomainController, tapicfg and ntdsutil partition management lines from the PowerShell Cheat Sheet, pull the partition DN and the deleted GUID out of the fSMORoleOwner value with the Regex Tester, check which site subnets the remaining domain controllers sit in with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on the DC you are demoting with the MAC Vendor Lookup. Related guides: transfer or seize FSMO roles, event 2087 (metadata cleanup steps), DC promotion or demotion: Access is denied and common AD replication errors.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
The infrastructure master of the DomainDnsZones or ForestDnsZones partition points at a deleted DC (0ADEL in fSMORoleOwner), so the DC can't hand off its DNS data. Set fSMORoleOwner on that partition's CN=Infrastructure object to a live DC in ADSI Edit and let it replicate in.
For the DC=MSTAPI partition created by the Configure Your Server wizard, run tapicfg remove /directory:mstapi. followed by your domain DNS name if nothing uses it. For other partitions, remove this DC's replica in ntdsutil with partition management and remove nc replica, then demote.
Only as a last resort: when the DC can't reach other DCs and that can't reasonably be fixed, when a dependency can't be resolved after detailed troubleshooting, or when the DC hasn't replicated for longer than the tombstone lifetime. Any changes that hadn't replicated off it are lost.
Uninstall-ADDSDomainController -ForceRemoval -DemoteOperationMasterRole. ForceRemoval removes AD DS without contacting other DCs, and DemoteOperationMasterRole lets it continue when the DC holds an operations master role. In Server Manager it is Force the removal of this domain controller.
Clean up the DC's metadata on a surviving DC straight away, seize any FSMO roles it held, remove its computer account, DNS records, FRS and DFS references and group memberships, add a GC or DNS server if needed, and delete its server object in Sites and Services.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.