TSF – Giải pháp IT toàn diện cho doanh nghiệp SMB | HCM

P19 - Safely Demote Domain Controller: Critical FSMO Guide

WinServer 2025 – P19 Demote Domain Controller Holding All FSMO Roles

Demoting Domain Controller holding all FSMO roles is a critical operation in any Active Directory infrastructure. If done incorrectly, it can break authentication, replication, and domain services across the network.

In this guide, we will walk through the correct and safe procedure to Demote Domain Controller in Windows Server 2025 — especially when it holds all FSMO roles — and prepare the server for Sysprep, cloning, or redeployment.


🎯 When Should You Demote a Domain Controller?

You typically perform this operation when:

  • Migrating to a new Domain Controller

  • Rebuilding lab environments

  • Converting a DC back to a member server

  • Preparing a template for cloning

  • Cleaning up FSMO role holders safely

If your DC is holding all FSMO roles, the demotion process must explicitly transfer or remove those roles properly.


🔹 Step 1: Demote Domain Controller

On DC2025, perform one of the following methods:

✅ Option 1 – GUI Method

  • Remove Active Directory Domain Services

  • Demote to Member Server


✅ Option 2 – PowerShell Method (Recommended for Admins)

 

$pwd = Read-Host “Enter local Administrator password” AsSecureString

Uninstall-ADDSDomainController `
ForceRemoval `
DemoteOperationMasterRole `
LocalAdministratorPassword $pwd

 

When prompted:

👉 Enter Password Admin Domain

This step ensures:

  • Active Directory Domain Services is removed

  • FSMO roles are properly handled during demotion

  • The server transitions safely out of DC role

⚠ Important: The -DemoteOperationMasterRole parameter ensures FSMO roles are addressed during removal.


🔹 Step 2: Reboot

After demotion completes:

  • The server returns to normal Windows Server mode

  • It no longer contains the Active Directory database

At this point:

  • The machine is no longer a Domain Controller

  • AD DS binaries are removed

  • NTDS database no longer exists

  • SYSVOL is no longer active

Always verify:

  • The server is now a Member Server

  • AD DS role is no longer installed


🔹 Step 3: Only Then Can Sysprep Be Used

Once the server is fully demoted, you can safely run:

 
%windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown
 

👉 At this point:

  • Server is almost a fresh OS

  • Can clone / template / deploy again

This is critical because:

❌ Sysprep cannot run on an active Domain Controller
✅ Sysprep works only after AD DS has been fully removed

Running Sysprep before demotion will result in failure and system state issues.


🔎 What Happens Behind the Scenes?

When you Demote Domain Controller:

  • AD DS role is removed

  • NTDS.dit database is deleted

  • FSMO roles are relinquished

  • Domain trust relationships are cleared

  • Machine account reverts to member server status

This ensures your infrastructure remains consistent and prevents orphaned FSMO role holders.


🚀 Best Practices Before Demotion

Before performing this operation in production:

  • Ensure FSMO roles are transferred if needed

  • Confirm replication health

  • Backup system state

  • Validate no services depend on this DC

  • Check DNS role implications

Even in lab environments, following proper demotion procedures prevents future corruption.


🏁 Final Thoughts

Demoting a Domain Controller holding all FSMO roles is not just a simple role removal — it is a sensitive infrastructure operation.

By following this structured process:

  1. Demote properly

  2. Reboot cleanly

  3. Run Sysprep safely

You ensure your Windows Server 2025 environment remains stable, clean, and ready for redeployment.

If you’re working through a full WinServer 2025 AD series, this step is essential before moving into cloning, templating, or infrastructure rebuild phases.

See also related articles

P19 – Safely Demote Domain Controller: Critical FSMO Guide

P19 – Safely Demote Domain Controller: Critical FSMO Guide https://youtu.be/vLgyzgmxzPI WinServer 2025 – P19 Demote Domain Controller Holding All FSMO Roles Demoting Domain Controller holding all FSMO roles is a critical operation in any Active Directory infrastructure. If done incorrectly, it can break authentication, replication, and domain services across the...

Read More

P18 – Critical Fix Guide Delete ADC Died Server 2025

P18 – Critical Fix Guide Delete ADC Died Server 2025 https://youtu.be/82fvirmHZ2k WinServer2025 – P18 Critical Fix Remove Dead ADC from Active Directory (Server 2025) When an Additional Domain Controller (ADC) fails permanently, leaving it inside Active Directory can cause serious long-term issues. Replication errors, DNS conflicts, GC problems, and even...

Read More

P17 – Critical Guide Delete PDC Died in Server 2025

P17 – Critical Guide Delete PDC Died in Server 2025 https://youtu.be/ipF1EziL_C8 WinServer2025 – P17 How to Remove a Failed Domain Controller in Windows Server 2025 When a Primary Domain Controller (PDC) fails permanently and cannot be brought back online, simply shutting it down is not enough. The failed controller still...

Read More