When you retire a domain controller, you move its FSMO roles off it first. When a DC dies, you take those roles back by force. This guide covers how to <strong>transfer or seize FSMO roles in Active Directory</strong> with PowerShell, ntdsutil, and the MMC snap-ins. It also covers the health checks to run first, the checks to run after, and the post-seizure cleanup that stops a dead DC from haunting your domain later.
The rule is simple. Transfer is the default. Seizure is the last resort. Everything below follows from that.
What Are FSMO Roles?
Most Active Directory data is multi-master, which means any domain controller (DC) can accept a change and replicate it. A few jobs can’t work that way, because two DCs doing them at once would cause conflicts. These jobs are the <strong>Flexible Single Master Operations (FSMO)</strong> roles, also called operations master roles. Each forest has two of them, and each domain has three.
| Role | Scope | What it does | What breaks when it’s offline |
|---|---|---|---|
| Schema Master | Forest | Authorizes and coordinates schema changes for the forest | Schema extensions fail. This includes Exchange installs, adprep, and adding a DC that runs a newer Windows Server version. Day-to-day work is unaffected. |
| Domain Naming Master | Forest | Adds and removes domains and application partitions | You can’t add or remove domains or directory partitions. Normal users won’t notice. |
| RID Master | Domain | Hands out blocks of Relative IDs (RIDs) to each DC for building SIDs | DCs keep working until their current RID pool runs out. After that, creating users, groups, and computers fails. Promoting new DCs also fails. |
| PDC Emulator | Domain | Time source for the domain, password-change authority, lockout processing, default target for GPO edits | This one is the most visible. Time drifts and causes Kerberos failures, password changes are slow to take effect, lockouts behave strangely, and Group Policy Management complains. Fix this role first. |
| Infrastructure Master | Domain | Updates cross-domain object references | You’ll see stale cross-domain group membership names. In a single-domain forest, or when every DC is a Global Catalog, you won’t notice anything. |
That table gives you your urgency ranking. A dead PDC Emulator hurts within hours. A dead Schema Master might go unnoticed for months.
Prerequisites
- An on-premises Active Directory Domain Services (AD DS) domain. This guide doesn’t cover Microsoft Entra ID.
- At least one healthy target DC, ideally in the same site as most users. A Global Catalog is a sensible target for most roles, but in a multi-domain forest the Infrastructure Master shouldn’t sit on a GC unless every DC in the domain is a GC.
- Domain Admins membership in the target domain for the PDC Emulator, RID Master, and Infrastructure Master roles
- Enterprise Admins membership for the Domain Naming Master, plus Schema Admins for the Schema Master
- The Active Directory PowerShell module. It’s installed automatically on DCs. On a workstation, install it through RSAT: Active Directory Domain Services and Lightweight Directory Services Tools.
- Console or RDP access to the target DC. Running seizures locally on the target DC is the most reliable approach.
- A recent system state backup of at least one DC
| Requirement | Details |
|---|---|
| OS | Windows Server 2016, 2019, 2022, or 2025 DCs |
| Tools | PowerShell 5.1 (ActiveDirectory module), ntdsutil.exe, repadmin.exe, dcdiag.exe, netdom.exe, w32tm.exe |
| Network | DNS resolution between DCs, TCP 9389 (Active Directory Web Services) open to the target DC for PowerShell cmdlets |
| Hardware | Nothing special. A DC on a <strong>UPS</strong> will save you from many “sudden DC death” scenarios in the first place. |
Test environment
Example environment: Windows Server 2025 (build 26100) and Windows Server 2022 DCs, forest and domain functional level Windows Server 2016, domain corp.example.com. DC01 (10.0.10.11) holds all five roles, and DC02 (10.0.10.12) is the target. A lab like this can run both DCs as Hyper-V VMs on a small <strong>mini PC</strong>. The commands and sample output below are illustrative examples for this reference setup, not captured test results; exact wording and object counts will differ in your environment.
Step-by-Step Guide
Step 1: Open an Elevated PowerShell Session and Load the AD Module
On the target DC, right-click Start and select Terminal (Admin) or Windows PowerShell (Admin). UAC elevation matters here. A non-elevated session can fail with access-denied errors even when your account is a Domain Admin.
Import-Module ActiveDirectory
Get-Command Move-ADDirectoryServerOperationMasterRole
Example output (illustrative; the module version on your system may differ, and any version that lists the cmdlet works):
CommandType Name Version Source
———– —- ——- ——
Cmdlet Move-ADDirectoryServerOperationMasterRole 1.0.1.0 ActiveDirectory
On a Windows 11 admin workstation without the module, go to Settings > System > Optional features > View features. Then add RSAT: Active Directory Domain Services and Lightweight Directory Services Tools. You can also install it from an elevated prompt:
# Installs the AD DS / LDS RSAT tools on Windows 10/11
Add-WindowsCapability -Online -Name "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0"
Step 2: Check Which DC Holds Each Role
Record your starting point before you change anything. Use the three methods below and compare their answers, especially if you suspect a problem.
netdom (quickest):
netdom query fsmo
Schema master DC01.corp.example.com
Domain naming master DC01.corp.example.com
PDC DC01.corp.example.com
RID pool manager DC01.corp.example.com
Infrastructure master DC01.corp.example.com
The command completed successfully.
PowerShell (forest and domain roles):
Get-ADForest | Format-List SchemaMaster, DomainNamingMaster
Get-ADDomain | Format-List PDCEmulator, RIDMaster, InfrastructureMaster
SchemaMaster : DC01.corp.example.com
DomainNamingMaster : DC01.corp.example.comPDCEmulator : DC01.corp.example.com
RIDMaster : DC01.corp.example.com
InfrastructureMaster : DC01.corp.example.com
Per-DC view (useful in larger domains):
Get-ADDomainController -Filter * | Select-Object Name, IsGlobalCatalog, OperationMasterRoles | Format-Table -AutoSize
Name IsGlobalCatalog OperationMasterRoles
—- ————— ——————–
DC01 True {SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster}
DC02 True {}
These commands read the role owner from the local DC’s copy of the directory. If that DC is behind on replication, it can report stale data. That’s one more reason to run the health checks in Step 4.
Step 3: Decide Whether to Transfer or Seize
Answer one question honestly: Will the current role holder ever boot again with its existing AD database?
| Situation | Action |
|---|---|
| Current holder is online and healthy | Transfer |
| Planned demotion, migration, or hardware refresh | Transfer before demoting |
| Holder is offline but repairable (bad NIC, full disk, pending reboot) | Wait, fix it, then transfer |
| Holder is gone for good (dead hardware, corrupt VM, ransomware wipe) and the missing role is hurting you | Seize, then do metadata cleanup |
| Holder is gone, but the role is Schema or Domain Naming Master and you have no pending schema or domain changes | Seizing is still correct eventually, but there’s no rush. Get the PDC Emulator back first. |
Why is seizure risky? A transfer is a conversation. The old holder agrees to hand over the role and replicates its latest state. A seizure is one-sided: the new DC simply writes itself in as the owner. If the old DC comes back later, both DCs believe they own the role. For the RID Master, that can mean duplicate SIDs. For the Schema Master, it can mean conflicting schema updates.
Warning: A seized DC must never rejoin the network with its current installation. If you’re not willing to wipe it, don’t seize from it.
Step 4: Run Replication Health Checks
Resolve replication failures before a transfer wherever possible. Microsoft lists a domain free from replication errors as a prerequisite, and the target needs a current copy of the directory partitions the role depends on. Run these on the target DC from an elevated Command Prompt:
repadmin /replsummary
Healthy output shows 0 in the fails column and deltas within your replication interval:
Replication Summary Start Time: 2026-09-28 10:14:22
Beginning data collection for replication summary, this may take awhile:
….Source DSA largest delta fails/total %% error
DC01 08m:41s 0 / 10 0
DC02 07m:12s 0 / 10 0Destination DSA largest delta fails/total %% error
DC01 07m:12s 0 / 10 0
DC02 08m:41s 0 / 10 0
Next, check the DC health tests tied to roles. /v is verbose. /test: limits dcdiag to specific tests so the output stays readable.
dcdiag /test:knowsofroleholders /test:fsmocheck /test:ridmanager /test:replications /v
Look for lines like these:
……………………. DC02 passed test KnowsOfRoleHolders
……………………. DC02 passed test RidManager
……………………. DC02 passed test Replications
……………………. corp.example.com passed test FsmoCheck
For a full sweep, run dcdiag /e /q. /e tests every DC in the enterprise, and /q prints only errors. Empty output is what you want.
Finally, for a transfer, force a sync from the current role holder so its latest changes reach its partners, including the target. Run this on the holder:
repadmin /syncall /AdeP
Per Microsoft’s repadmin /syncall reference, the switches mean: A = synchronize all naming contexts held on this DC, d = identify servers by distinguished name in messages, e = include domain controllers in all sites (by default other sites are skipped), P = push changes outward from this DC instead of pulling. Treat it as a pre-change sync, not a universal repair step.
In a seizure, the old DC is dead, so these checks will show failures for it. That’s expected. You’re confirming that the surviving DCs replicate cleanly with each other. Also check when the target last replicated successfully from the dead DC:
repadmin /showrepl DC02
If that last success was days before the failure, the target may be missing recent changes. Compare the surviving DCs’ replication status and Directory Service event logs, and pick a healthy, writable DC with the most complete known directory state as your seizure target.
Step 5: Transfer Roles with PowerShell
Move-ADDirectoryServerOperationMasterRole is the recommended tool, and -Identity names the DC that receives the role. Microsoft’s Transfer FSMO roles guide uses -Identity <TargetServer> for every role and tells you to replace <TargetServer> with “the name of the domain controller that you want to transfer the role to.” The Windows Server 2025 cmdlet reference says the same in its parameter text (“The Identity parameter specifies the directory server that receives the roles”), and every one of its examples moves roles to the named DC.
One sentence in that reference’s description says a transfer uses Identity “to specify the current role holder.” It contradicts the parameter text and examples on the same page, so follow the procedure guide: pass the destination DC. Then verify immediately with Get-ADDomainController -Identity DC02 | Select-Object OperationMasterRoles. Get this backwards and you’ll spend a confused minute wondering why nothing moved.
Transfer a single role:
# -Identity = the DC that will RECEIVE the role
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole PDCEmulator
PowerShell asks for confirmation:
Move Operation Master Role
Do you want to move role ‘PDCEmulator’ to server ‘DC02.corp.example.com’ ?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):
Here’s the command for each role individually:
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole PDCEmulator
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole RIDMaster
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole InfrastructureMaster
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole SchemaMaster
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole DomainNamingMaster
Move all five at once:
# Comma-separated list moves several roles in one call
# -Confirm:$false skips the per-role prompts (use only once you're sure)
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" `
-OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster `
-Confirm:$false
You can also use the numeric shorthand: 0 = PDCEmulator, 1 = RIDMaster, 2 = InfrastructureMaster, 3 = SchemaMaster, 4 = DomainNamingMaster. So -OperationMasterRole 0,1,2,3,4 works too. It’s quicker to type, but it’s harder to read in a change ticket.
A successful transfer returns no output. Run netdom query fsmo right away to confirm. See Step 11 for more checks.
Step 6: Transfer Roles with ntdsutil (Alternative)
Use ntdsutil when the AD PowerShell module or Active Directory Web Services is unavailable, or when your runbook calls for it. The tool runs interactively. Open an elevated Command Prompt on any DC and enter these commands in order:
ntdsutil
roles
connections
connect to server DC02
quit
connect to server names the DC that will receive the role. The quit returns you from server connections: to fsmo maintenance:. Now transfer:
transfer PDC
transfer RID master
transfer infrastructure master
transfer schema master
transfer naming master
Each command opens a dialog titled Role Transfer Confirmation Dialog. Click Yes. ntdsutil then prints the updated role list:
Server “DC02” knows about 5 roles
Schema – CN=NTDS Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=example,DC=com
Naming Master – CN=NTDS Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=example,DC=com
PDC – CN=NTDS Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=example,DC=com
RID – CN=NTDS Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=example,DC=com
Infrastructure – CN=NTDS Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=corp,DC=example,DC=com
Type quit twice to exit.
Step 7: Transfer Roles with the MMC Snap-ins (Alternative)
The GUI works fine for transfers, and some admins like to watch the change happen. The GUI can’t seize roles, though. Point each snap-in at the target DC first, because the dialog moves the role to the DC you’re connected to.
PDC Emulator, RID Master, Infrastructure Master in Active Directory Users and Computers:
- Open Active Directory Users and Computers (
dsa.msc). - Right-click the domain and select Change Domain Controller. Choose DC02 and click OK.
- Right-click the domain again and select Operations Masters.
- On the RID tab, confirm that the lower box shows
DC02.corp.example.com. Click Change, then Yes. - Repeat on the PDC and Infrastructure tabs.
Domain Naming Master in Active Directory Domains and Trusts:
- Open Active Directory Domains and Trusts (
domain.msc). - Right-click Active Directory Domains and Trusts at the root, select Change Active Directory Domain Controller, choose DC02, and click OK.
- Right-click the root again, select Operations Master, and click Change. Confirm with Yes.
Schema Master in the Active Directory Schema snap-in:
This snap-in isn’t registered by default. From an elevated Command Prompt:
regsvr32 schmmgmt.dll
Next, run mmc and go to File > Add/Remove Snap-in > Active Directory Schema > Add > OK. Right-click Active Directory Schema, select Change Active Directory Domain Controller, and pick DC02. Then right-click it again, select Operations Master, and click Change.
Step 8: Seize Roles from a Permanently Failed DC (Last Resort)
Only proceed if Step 3 led you here. Before you run anything:
- Make sure the old DC can’t come back. Power it off, disconnect its network cable or vNIC, and label it. For a VM, remove its virtual network adapter or delete the VM.
- Run the seizure on the target DC itself, so it doesn’t depend on reaching another server.
- Seize only the roles the dead DC held. Check
netdom query fsmoagain.
Warning: Seizure is irreversible in practice. After you seize, the old DC’s directory database can’t safely return to the domain. Never reconnect it as a domain controller; Microsoft recommends formatting and rebuilding the computer rather than restoring it from backup before any reuse.
PowerShell seizure:
# -Force turns a transfer into a seizure.
# PowerShell tries a normal transfer first, then seizes if the old holder can't be reached.
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" `
-OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster `
-Force
Expect a delay of a minute or more. Even with -Force, the cmdlet first attempts a graceful transfer and has to time out against the unreachable holder before it seizes the role. Running it locally on DC02 avoids an extra remote-management hop, but the cmdlet still relies on DC02’s own directory service and authentication, and it doesn’t skip that first attempt. Let it finish rather than cancelling partway through.
The per-role syntax is the same as in Step 5, with -Force appended:
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole PDCEmulator -Force
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole RIDMaster -Force
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole InfrastructureMaster -Force
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole SchemaMaster -Force
Move-ADDirectoryServerOperationMasterRole -Identity "DC02" -OperationMasterRole DomainNamingMaster -Force
ntdsutil seizure:
ntdsutil
roles
connections
connect to server DC02
quit
seize PDC
seize RID master
seize infrastructure master
seize schema master
seize naming master
quit
quit
ntdsutil also tries a safe transfer first. You’ll see an error before the seizure succeeds. It looks alarming the first time. The abbreviated, illustrative output below varies by version; judge success by the resulting role ownership and event logs, not the exact text:
Attempting safe transfer of PDC FSMO before seizure.
ldap_modify_sW error 0x34(52 (Unavailable).
Ldap extended error message is 000020AF: SvcErr: DSID-03210F70, problem 5002 (UNAVAILABLE), data 1722Win32 error returned is 0x20af(The requested FSMO operation failed. The current FSMO holder could not be contacted.)
)
Depending on the error code this may indicate a connection,
ldap, or role transfer error.
Transfer of PDC FSMO failed, proceeding with seizure …
Server “DC02” knows about 5 roles
RID pool difference. When you seize the RID Master, the new holder bumps the next RID pool allocation. This avoids reissuing RIDs the dead DC may have handed out but never replicated. Microsoft’s Transfer or seize operation master roles in AD DS article gives the exact figures: Move-ADDirectoryServerOperationMasterRole “increases the next Rid pool by 30,000 from what it finds in Active Directory,” and ntdsutil’s roles commands increase it “by 10,000.”
Either way the seizure consumes a block of RIDs (Microsoft calls this RID burn), so seize the RID Master only when the old holder can’t return. The default global RID space is about 1.07 billion (2^30), but treat that as a ceiling to monitor, not a capacity guarantee. Before you bulk-create accounts, confirm the new pool looks sane:
dcdiag /test:ridmanager /v
Look at rIDAvailablePool and rIDNextRID in the output. The test should pass.
Step 9: Post-Seizure Metadata Cleanup (Don’t Skip This)
Seizing moves the roles. It doesn’t remove the dead DC from Active Directory. Until you clean up, other DCs keep trying to replicate with it. Its stale DNS and SRV records can also keep pointing DC locator and other discovery traffic at a server that’s gone.
Option A: Active Directory Users and Computers (easiest, Windows Server 2008 and later)
- In
dsa.msc, open the Domain Controllers OU. - Right-click DC01 and select Delete, then click Yes.
- In the Deleting Domain Controller dialog, check This Domain Controller is permanently offline and can no longer be demoted using the Active Directory Domain Services Installation Wizard (DCPROMO) and click Delete.
- If DC01 was a Global Catalog, confirm the extra prompt.
Microsoft documents that deleting the DC object here with Windows Server 2008 or newer tools performs server metadata cleanup automatically, but the exact effects depend on the dialog choices, replication state, and SYSVOL replication configuration. Afterward, verify the server object in Active Directory Sites and Services and the DC’s DNS records separately, and remove any leftovers.
Option B: ntdsutil
ntdsutil
metadata cleanup
connections
connect to server DC02
quit
remove selected server DC01
quit
quit
This is the command-line sequence in Microsoft’s Clean up AD DS server metadata guide, step for step: connect to server at the server connections: prompt, quit back to the metadata cleanup: prompt, then remove selected server with the dead DC’s name as its argument. Because you name the server directly in that command, Microsoft’s procedure doesn’t use the separate select operation target menu, so don’t mix the two workflows.
DC02 is a surviving domain controller that still replicates with the dead one — connect to it first so ntdsutil has a live view of the directory. DC01 is the NetBIOS or FQDN name of the domain controller you’re removing; ntdsutil resolves its object from the connected server, so you don’t hand-build a distinguished name.
Confirm the Server Remove Configuration dialog with Yes. If ntdsutil reports that the object can’t be found, the DC might have been removed earlier; confirm in Active Directory Users and Computers and Sites and Services.
Then finish the cleanup manually:
- Sites and Services (
dssite.msc): Expand Sites > site > Servers, right-click DC01, and select Delete. After either option above, check whether the server object or its NTDS Settings child object is still present. If the server object remains with no child objects, delete it. - DNS Manager (
dnsmgmt.msc): Review the records that still point at DC01 and remove only the ones that belonged to the retired DC: its A record, its name server (NS) records on AD-integrated zones, its GUID CNAME under_msdcs.corp.example.com, and its SRV records under_msdcs,_sites,_tcp, and_udp. Before deleting an NS record, confirm it isn’t part of an intentional delegation or a separately managed authoritative or secondary design, and that the zone still lists at least one other healthy DC as a name server. To find the candidates quickly:
# Lists records in the main zone that still point at DC01 by name or IP
Get-DnsServerResourceRecord -ZoneName "corp.example.com" -ComputerName "DC02" |
Where-Object { $_.RecordData.IPv4Address -eq "10.0.10.11" -or
$_.RecordData.DomainName -like "dc01*" -or
$_.RecordData.NameServer -like "dc01*" }
Repeat with -ZoneName "_msdcs.corp.example.com".
- Client DNS settings: Remove 10.0.10.11 from DHCP scope option 006, from static IP configs, and from the NIC DNS settings of the remaining DCs.
- Force replication so every DC sees the cleanup:
repadmin /syncall /AdeP.
Warning: Never reconnect the old DC. If DC01’s hardware turns out to be fixable, reinstall Windows from scratch before plugging it in. Once metadata cleanup has replicated everywhere, you can promote it again as a brand-new DC. Reusing the same name is fine, but wait until the cleanup has fully replicated.
Step 10: Reconfigure Time on the New PDC Emulator
The forest root PDC Emulator sits at the top of the domain time hierarchy. When that role moves, the new holder may not sync from an external source on its own; that depends on its existing Windows Time configuration, any Group Policy, and virtualization time integration. Check it with w32tm /query /source.
If your organization uses an internal authoritative time source or sets Windows Time through Group Policy, point DC02 at that design instead of the public pool below. If DC02 isn’t the forest-root PDC Emulator, leave it on the domain hierarchy. Otherwise, if it isn’t already pointed at a reliable source, configure it on DC02:
# /manualpeerlist: external NTP sources; 0x8 = client mode requests
# /syncfromflags:manual: use the peer list, not the domain hierarchy
# /reliable:yes: advertise this DC as a reliable time source to the domain
w32tm /config /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update
Restart-Service w32time
w32tm /resync /rediscover
If you run an internal GPS/NTP time server appliance, put its IP address in the peer list instead of the pool servers.
Verify:
w32tm /query /source
w32tm /query /status
0.pool.ntp.org,0x8
Leap Indicator: 0(no warning)
Stratum: 3 (secondary reference – syncd by (S)NTP)
…
Source: 0.pool.ntp.org,0x8
If the output says Local CMOS Clock or VM IC Time Synchronization Provider, the config didn’t take. See Troubleshooting.
If the old PDC is still alive (the transfer scenario), point it back at the domain hierarchy:
w32tm /config /syncfromflags:domhier /reliable:no /update
Restart-Service w32time
Virtualized PDC on Hyper-V? Host time sync can conflict with the PDC’s configured time source. Check your virtualization team’s time design first; if it doesn’t rely on host time for this VM, disable host time sync on the Hyper-V host:
Disable-VMIntegrationService -VMName "DC02" -Name "Time Synchronization"
On VMware, turn off Synchronize guest time with host in the VM’s VMware Tools options.
Step 11: Verify the New Role Holders and Replication
Run each of these checks. Don’t stop after the first one.
netdom query fsmo
Schema master DC02.corp.example.com
Domain naming master DC02.corp.example.com
PDC DC02.corp.example.com
RID pool manager DC02.corp.example.com
Infrastructure master DC02.corp.example.com
The command completed successfully.
Next, confirm that every DC agrees. A DC that still shows the old holder may simply not have replicated yet: wait at least one replication interval for its site link, or run repadmin /syncall /AdeP, then query again. A DC that still disagrees after replication reports success needs troubleshooting:
Get-ADDomainController -Filter * | ForEach-Object {
$d = Get-ADDomain -Server $_.HostName
[PSCustomObject]@{ QueriedDC = $_.Name; PDC = $d.PDCEmulator; RID = $d.RIDMaster; Infra = $d.InfrastructureMaster }
} | Format-Table -AutoSize
Then run the health tests again:
dcdiag /test:knowsofroleholders /test:fsmocheck /test:ridmanager /e /q
repadmin /replsummary
w32tm /monitor
You’re done when dcdiag /q prints nothing, replication shows zero failures, and every DC has a small offset in w32tm /monitor.
Configuration
Move-ADDirectoryServerOperationMasterRole parameters
| Parameter | Purpose | Default |
|---|---|---|
-Identity | DC that receives the role | Required |
-OperationMasterRole | PDCEmulator, RIDMaster, InfrastructureMaster, SchemaMaster, DomainNamingMaster (or 0–4), comma-separated | Required |
-Force | Seize if transfer fails | Off |
-Confirm:$false | Skip per-role prompts | Prompts on |
-Server | DC to run the operation against (useful from a workstation) | Discovered DC |
-Credential | Run as a different admin account | Current user |
ntdsutil role names
| Role | Transfer | Seize |
|---|---|---|
| PDC Emulator | transfer PDC | seize PDC |
| RID Master | transfer RID master | seize RID master |
| Infrastructure Master | transfer infrastructure master | seize infrastructure master |
| Schema Master | transfer schema master | seize schema master |
| Domain Naming Master | transfer naming master | seize naming master |
Placement patterns
- Small domains (1–3 DCs): Keep all five roles on one well-protected DC. It’s simpler to track, and it’s what
dcpromodoes by default. - PDC Emulator belongs on your best-connected, best-hardware DC, in the site with the most users.
- RID Master and PDC Emulator usually belong together, because both are domain-wide and chatty with each other.
- Infrastructure Master should not sit on a Global Catalog in a multi-domain forest, unless every DC in the domain is a GC. In a single-domain forest it doesn’t matter.
- Schema and Domain Naming Master should stay together on a forest root DC.
Tips and Troubleshooting
“Move-ADDirectoryServerOperationMasterRole is not recognized”
Why it happens: The ActiveDirectory module isn’t installed or loaded.
Fix: Run Import-Module ActiveDirectory. If that fails, install RSAT (Step 1) or use Server Manager > Add Roles and Features > Features > Remote Server Administration Tools > AD DS and AD LDS Tools. Then open a new PowerShell window.
“Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.”
Why it happens: The AD cmdlets talk to Active Directory Web Services (ADWS) on TCP 9389. DNS, a firewall, or a stopped ADWS service is blocking the connection.
Fix:
Resolve-DnsName DC02.corp.example.com
Test-NetConnection DC02.corp.example.com -Port 9389
Get-Service ADWS -ComputerName DC02
Fix DNS or the firewall rule, or start ADWS. If you’re stuck, fall back to ntdsutil, which uses LDAP/RPC instead.
“Access is denied” or “Insufficient access rights to perform the operation”
Why it happens: The session isn’t elevated, or the account lacks the right group. Schema Master needs Schema Admins. Domain Naming Master needs Enterprise Admins.
Fix: Check your groups with whoami /groups. Group changes need a fresh logon, so sign out and back in after being added. Reopen the shell as administrator.
ntdsutil: “The requested FSMO operation failed. The current FSMO holder could not be contacted.”
Why it happens: You ran transfer while the current holder is offline.
Fix: Go back to Step 3. If the holder is only temporarily down, bring it back and retry. If it’s permanently dead, use seize.
The old DC came back online after a seizure
Why it happens: Someone powered it on, a hypervisor auto-started the VM, or it was restored from a snapshot.
Fix: Disconnect it from the network immediately. Run netdom query fsmo from several DCs to check for conflicting owners. Check the Directory Service log on all DCs for event 2095 (USN rollback) and 1988 (lingering objects). Wipe the old DC. Don’t try to demote it gracefully. Then redo metadata cleanup if needed.
Symptoms of USN rollback after a DC restore
Why it happens: A DC was restored from a VM snapshot or disk image instead of a supported system state backup. Its Update Sequence Numbers go backwards, and partners silently ignore its changes.
Fix: Look for event 2095 and a paused Netlogon service on the affected DC. The supported fix is to force-demote and rebuild that DC. Prevention is simple: back up DCs with Windows Server Backup or an AD-aware tool, and store backups off-box on something like a <strong>NAS</strong>. Never roll a DC back with a hypervisor snapshot.
Active Directory Schema snap-in is missing
Fix: Run regsvr32 schmmgmt.dll elevated, then add the snap-in via File > Add/Remove Snap-in in mmc.exe.
Clients show wrong time after the PDC moved
Why it happens: The new PDC is still syncing from the hierarchy or the hypervisor, or the old PDC is still flagged as reliable.
Fix: Rerun Step 10 on the new PDC. Run w32tm /config /reliable:no /update on the old one if it still exists. On a client, run w32tm /resync /rediscover, then w32tm /query /source. It should show a DC as the source.
Dead DC still appears in dcdiag and repadmin output
Why it happens: Metadata cleanup is incomplete. Usually the Sites and Services server object or DNS records are still there.
Fix: Finish every item in Step 9, then run repadmin /syncall /AdeP and rerun repadmin /replsummary.
FAQ
What happens if a FSMO role holder goes offline?
The PDC Emulator is usually the first role whose loss causes visible problems, though how quickly depends on time configuration, workload, and replication. Time sync, urgent password-change handling, and account lockout processing can degrade within hours. RID Master loss hurts once DCs use up their current RID pools.
Schema and Domain Naming Master loss only matters when you try a schema or domain change. The Infrastructure Master barely matters in a single-domain forest.
How long can I wait before seizing?
It depends on the role. For the PDC Emulator, a few hours at most.
For the others, you can wait days if you’re confident the DC will return. Don’t seize just to make an alert go away.
Can I seize with the GUI?
No. The MMC Operations Masters dialogs only perform transfers. Use Move-ADDirectoryServerOperationMasterRole -Force or ntdsutil seize.
Should I demote the old DC after a normal transfer?
Only if you’re retiring it. After a transfer, the old DC is a perfectly healthy DC with no roles. If you do retire it, demote it through Server Manager or Uninstall-ADDSDomainController so it removes its own metadata.
Why can’t I just reconnect the old DC after fixing it?
Its database still claims the roles and hasn’t seen any changes made since it went offline. Reconnecting it creates duplicate role owners. Two RID Masters can issue overlapping RID pools, which leads to duplicate SIDs.
It can also bring deleted objects back as lingering objects. Wipe it and promote it as a new DC.
What causes duplicate role holders?
The usual cause is a seizure followed by the old DC returning. It can also happen when a DC isolated for a long time rejoins after roles were seized elsewhere. The prevention is the same in both cases: permanently retire any DC you seize from.
Does the PowerShell vs. ntdsutil RID increment matter?
Rarely. Per Microsoft’s seizure article linked in Step 8, a PowerShell seizure moves the next RID pool up by 30,000 and an ntdsutil seizure by 10,000.
Both are small next to the default global RID space of about 1.07 billion, though repeated seizures add up. Note which tool you used in your incident notes, and check dcdiag /test:ridmanager afterward.
Do I need to move roles before an in-place upgrade?
No. An in-place upgrade keeps the roles. You only move roles when the DC is being demoted, replaced, or is dead.
Wrapping Up
The commands are the easy part. Real outages come from three mistakes: seizing when a transfer would have worked, skipping metadata cleanup, and letting a seized DC come back to life.
Follow the decision rule in Step 3 and treat Step 9 as mandatory. Do that, and FSMO work is routine maintenance instead of a weekend incident.
| Step | Action | Applies To |
|---|---|---|
| 1–2 | Load AD module, record current role holders | Transfer and seizure |
| 3 | Decide: transfer unless the holder is permanently gone | Both |
| 4 | repadmin / dcdiag health checks | Both |
| 5–7 | Transfer via PowerShell, ntdsutil, or MMC | Transfer |
| 8 | Seize via -Force or ntdsutil seize | Seizure only |
| 9 | Metadata cleanup, DNS cleanup, never reconnect the old DC | Seizure only |
| 10 | Reconfigure w32tm on the new PDC Emulator | Any PDC move |
| 11 | Verify roles, replication, and time | Both |