How to demote a domain controller in Active Directory
Written by: Mahidhar Adarsh, IT security team, ManageEngine Updated on May 2026
Pre-demotion checklist
Demote using Server Manager
Demote using PowerShell
Forced demotion
Monitoring demotion with ADAudit Plus
What does demoting a domain controller mean?
Demoting a domain controller (DC) removes the Active Directory Domain Services (AD DS) role from the server and reverts it to a member server or a standalone server. The server stops authenticating users, replicating directory data, and hosting DNS zones integrated with AD.
If you demote the last DC in a domain, the entire domain is removed from the forest. This is irreversible. It deletes all domain-specific objects, trusts, and Group Policy configurations tied to that domain.
There are two paths for demotion. A graceful demotion contacts replication partners, transfers remaining data, and cleanly removes the DC's presence from the directory. A forced demotion bypasses replication entirely and is only appropriate when the DC is offline, corrupted, or cut off from the network.
Why you might need to demote a domain controller
Here are the most common scenarios:
Hardware decommissioning. The physical server has reached end-of-life or is being replaced.
Domain consolidation. You're merging multiple domains into one as part of a forest restructuring project.
Operating system upgrade. You're replacing an older DC running Windows Server 2012 R2 or 2016 with a newly promoted DC running Windows Server 2022 or 2025.
Reducing your DC count. The environment has more DCs than it needs, and each extra DC increases the attack surface.
Removing a compromised DC. A DC involved in a security incident needs to be pulled from the domain to stop further damage.
Cloud migration. You're moving identity workloads to Microsoft Entra ID (formerly Azure Active Directory) and reducing on-premises AD infrastructure.
Pre-demotion checklist
Complete every check in this table before you start. Skipping any step can cause authentication failures, data loss, or orphaned objects.
Check
Why it matters
How to verify
FSMO roles
If the DC holds any FSMO role, that role is lost on demotion unless you transfer it first
netdom query fsmo to list current holders; transfer with Move-ADDirectoryServerOperationMasterRole
Replication health
All outbound changes must replicate to at least one partner before the DC goes offline
repadmin /replsummary and repadmin /showrepl
DNS zones
The DC may host AD-integrated DNS zones that other DCs don't
DNS Manager or dnscmd /enumzones on the target DC
Global Catalog role
At least one other DC in the site must hold the GC role
AD Sites and Services: right-click the NTDS Settings object and check GC status
System state backup
A full backup lets you roll back if something goes wrong
Windows Server Backup: wbadmin start systemstatebackup
Dependent services
DHCP, Certificate Authority (ADCS), Network Policy Server (NPS), or other roles hosted on this DC need to be migrated first
Services console or Get-WindowsFeature on the target DC
Stakeholder notification
Applications and users pointing to this DC's IP address will lose connectivity after demotion
Review DNS A records, DHCP scope options, and GPO-hardcoded server references
How to demote a domain controller using Server Manager
These steps apply to Windows Server 2016, 2019, and 2022.
Log on to the domain controller you want to demote with an account that is a member of the Domain Admins or Enterprise Admins group.
Open Server Manager and click Manage > Remove Roles and Features.
On the Server Selection page, confirm the target server is selected and click Next.
On the Server Roles page, clear the checkbox next to Active Directory Domain Services. A dialog box tells you that dependent features will also be removed. Click Remove Features, then click Next.
Server Manager displays a validation warning and prompts you to Demote this domain controller. Click that link to launch the Active Directory Domain Services Configuration Wizard.
On the Credentials page, enter credentials with sufficient permissions. If the DC is in a different domain from the one you're logged into, click Change and provide Enterprise Admin credentials.
On the Warnings page, review any operational master roles or DNS delegation warnings. If the DC holds FSMO roles you haven't transferred yet, the wizard can force the transfer during demotion. Check Proceed with removal if you accept the warnings.
On the Removal Options page:
If this is the last DC in the domain, check Last domain controller in the domain. This removes the domain from the forest.
If DNS delegation records exist, check Remove DNS delegation and provide credentials for the parent DNS zone.
On the New Administrator Password page, set a local administrator password for the server. This password takes effect after the AD DS role is removed and the machine reverts to a member server.
On the Review Options page, verify all settings and click Demote.
The server demotes and reboots automatically. After the reboot, log on with the local administrator account to confirm the server is now a member server.
How to demote a domain controller using PowerShell
The Uninstall-ADDSDomainController cmdlet gives you a scriptable alternative to the Server Manager wizard.
Validate before demoting:
Test-ADDSDomainControllerUninstallation -LocalAdministratorPassword (Read-Host -Prompt "Set local admin password" -AsSecureString)
This command runs prerequisite checks without making changes. Review the output for warnings before you proceed.
The -LastDomainControllerInDomain flag removes the entire domain from the forest. Only use this when you intend to delete the domain permanently.
The server reboots after the cmdlet completes. Log on with the local administrator password you set.
Forced demotion: when graceful demotion fails
A forced demotion is your fallback when the DC can't contact any replication partner. Common scenarios include a DC that's permanently offline, one with corrupted NTDS.dit, or one isolated from the network after a site link failure.
During the Active Directory Domain Services Configuration Wizard, check Force the removal of this domain controller. This skips replication and removes the AD DS role without contacting partners.
Forced demotion does not clean up the DC's metadata in Active Directory. The server object, NTDS Settings object, DNS records, and computer account all remain in the directory until you remove them yourself. If you skip metadata cleanup, replication topology errors, authentication failures, and stale SPN entries will pile up.
Post-demotion tasks
After demotion (graceful or forced), complete these cleanup steps to keep the domain healthy.
1. Metadata cleanup (required after forced demotion):
ntdsutil
metadata cleanup
connections
connect to server <working-DC-name>
quit
select operation target
list domains
select domain <number>
list sites
select site <number>
list servers in site
select server <number>
quit
remove selected server
This removes the orphaned NTDS Settings object and server reference from AD.
2. DNS record cleanup:
Open DNS Manager on a remaining DC and remove these records for the demoted server:
A (Host) records in the domain zone
SRV records under _msdcs, _tcp, _udp, and _sites subdomains
Delegation records (NS records) if the DC was a delegated DNS server
_GC SRV records if the DC was a Global Catalog server
3. AD Sites and Services cleanup:
Open AD Sites and Services, navigate to the site that contained the demoted DC, expand Servers, right-click the server object, and select Delete.
4. Group membership and computer object:
Remove the demoted server's computer account from the Domain Controllers OU if it wasn't already moved automatically. Verify it no longer appears in any privileged group membership.
5. Update client configurations:
If clients, DHCP scopes, or application configurations reference the demoted DC's IP address for DNS resolution, update those references to point to a remaining DC.
6. Verify replication health:
repadmin /replsummary
Confirm zero replication failures across all remaining DCs. Failures at this stage point to incomplete cleanup or a topology issue that needs attention.
Security risks of improper domain controller demotion
A botched or unauthorized DC demotion opens real holes in your environment. These aren't theoretical; they show up in post-incident reviews with uncomfortable regularity.
Stale DC objects in AD Sites and Services remain visible to anyone with directory read access. An attacker doing reconnaissance can spot these orphaned objects and identify that the domain has unresolved topology issues. In practice, this usually correlates with weak monitoring across the board.
Orphaned SPN entries left after a failed or incomplete demotion can be exploited through Kerberoasting. When an SPN still points to a service account that ran on the demoted DC, an attacker can request a service ticket for that SPN and crack it offline to recover the service account password.
Lingering NTDS Settings objects confuse the Knowledge Consistency Checker (KCC) and can cause remaining DCs to attempt replication with a partner that no longer exists. This generates repeated failures that flood security event logs and bury genuine replication problems in noise.
Metadata left after forced demotion can make DCShadow attacks easier to pull off. In a DCShadow attack, an adversary registers a rogue DC in AD by manipulating the same directory objects that a poorly cleaned-up demotion leaves behind. Orphaned server objects lower the barrier.
Unauthorized demotion by a compromised admin account removes audit visibility from an entire segment of the domain. If an attacker with Domain Admin credentials demotes a DC, they eliminate that DC's security event logs and reduce the number of replication partners recording changes. You lose eyes on whatever happened there.
ADAudit Plus detects Kerberoasting attempts and DCShadow attacks through its Attack Surface Analyzer. It provides real-time alerts when these techniques target orphaned DC objects or stale SPNs left after an incomplete demotion.
Limitations of native tools for monitoring demotion
Native Windows tools show you pieces of what happened during a demotion, but they can't give you a centralized, correlated view. Here's where they fall short:
Event Viewer logs are local to each DC. Security events generated during the demotion process exist only on the DC being demoted. Once that server is wiped or repurposed, those logs are gone.
No native real-time alerting on DC removal. Windows doesn't send a notification when a DC is demoted or when its computer account is deleted from the Domain Controllers OU. You find out when you manually check, or when something breaks.
repadmin is a point-in-time snapshot, not continuous monitoring. You can run repadmin /replsummary to check replication health, but it won't alert you when a topology change occurs or when a replication partner disappears.
No correlation between demotion events and downstream impact. Native tools can't connect a DC demotion to the resulting DNS record deletions, GPO link changes, or group membership removals in a single timeline. You piece it together yourself across multiple consoles.
No behavioral baseline for demotion activity. Windows has no built-in way to flag an unusual demotion, like one happening outside a maintenance window or performed by an account that has never touched infrastructure before.
What ADAudit Plus tracks during and after DC demotion
ADAudit Plus captures the full chain of changes that occur when a domain controller is demoted. It correlates them into a single audit trail with the identity of the administrator, the timestamp, and the source machine for every event.
Computer account deletion: The Recently Deleted Computers report (Active Directory > AD Changes > Computer Management > Recently Deleted Computers) records the exact moment the DC's computer account is removed from the Domain Controllers OU, along with who deleted it and from which machine.
AD replication topology changes: The Replica Sync History and Replication Failures reports (Server Audit > Member Servers > Replication) detect when a replication partner disappears from the topology and flag any resulting failures.
DNS record changes: The DNS Nodes Removed report captures every SRV, A, and delegation record deleted for the demoted DC.
GPO link changes: If the demotion affects GPO links (for example, a site-linked GPO that referenced the demoted DC's site membership), ADAudit Plus records the link modification.
Group membership changes: Removal from the Domain Controllers security group is captured with full attribution.
UBA anomaly detection: The Unusual Volume of User Management Activity report flags an admin account performing an abnormal number of AD object deletions, a pattern consistent with unauthorized or bulk demotion activity.
The entire domain is removed from the forest. All domain-specific objects (users, groups, computers, GPOs, trusts) are deleted permanently, and the domain's DNS zone is removed. Other domains in the forest lose any trust relationships they held with the deleted domain.
Only proceed with last-DC demotion after you've migrated all accounts and resources to another domain.
Yes. If the DC holds any of the five FSMO roles (Schema Master, Domain Naming Master, PDC Emulator, RID Master, Infrastructure Master), transfer those roles to another DC before demotion. The Uninstall-ADDSDomainController cmdlet with -DemoteOperationMasterRole can force the transfer during demotion, but a planned transfer beforehand is safer because it gives you time to verify the new role holder is working correctly.
A graceful demotion contacts replication partners, replicates any unreplicated changes, and cleanly removes the DC's presence from the directory. A forced demotion skips replication entirely. Use forced demotion only when the DC is offline or can't communicate with any partner.
Use ntdsutil with the metadata cleanup command to remove the orphaned server object. Then manually delete the demoted DC's DNS records (A, SRV, NS, and _GC records) and remove the server object from AD Sites and Services.
Yes. After demotion, the server is a regular member server. You can re-promote it by running Install-ADDSDomainController in PowerShell or by adding the AD DS role through Server Manager and running the promotion wizard.
The server receives a fresh copy of the AD database through replication.