← field notes

Recovering a Domain Controller After Tombstone Lifetime Expiry

Sarooj Zawahir4 December 202615 min read

  • Active Directory
  • Windows
  • High Availability

A domain controller that has been off the replication topology for longer than the forest tombstone lifetime will not simply catch up when you plug it back in. Active Directory quarantines the link on purpose. This is what is actually happening, and the two supported ways out of it, step by step.

The failure, in one paragraph

Replication to or from one domain controller stops. Running a replication check on the affected link returns error 8614, ERROR_DS_REPL_LIFETIME_EXCEEDED, and the Directory Service log carries event 2042 with the text “It has been too long since this machine last replicated with the named source machine”. Nothing is broken in the usual sense. The network is fine, DNS resolves, the service is running. Active Directory has looked at how long it has been since these two servers last agreed on anything, compared that against the forest tombstone lifetime, and refused to continue. The refusal is a safety feature, and working around it blindly is how a single stale server turns into a forest-wide data problem.

Why Active Directory refuses

When an object is deleted in Active Directory it is not erased. It is stripped of most of its attributes, flagged as deleted and kept as a tombstone so the deletion itself can replicate. The tombstone is retained for the number of days held in the tombstoneLifetime attribute on the Directory Service object in the configuration partition. Once that period passes, garbage collection removes the tombstone completely and no record of the deletion survives anywhere.

A domain controller that was offline for longer than that period never saw the tombstones. It still holds those objects as live, and the rest of the forest no longer holds any evidence that they were deleted. Those objects are lingering objects. If the two databases were allowed to merge, the stale copy would push deleted users, computers and groups back into production, and nothing in the replication protocol would stop it, because to every other DC they look like objects it has simply never seen before.

The sequence that produces a quarantined domain controller.

Two separate protections are involved, and it is worth keeping them apart:

  • The time-based quarantine. The destination DC refuses the inbound link outright once the gap exceeds the tombstone lifetime. This is error 8614 and event 2042. Lifting it is a deliberate administrative act.

  • Strict replication consistency. If a replication packet refers to an object the destination does not hold, a DC with this setting enabled halts replication of that partition and logs event 1988 instead of recreating the object. With the setting disabled, it reanimates the object instead, which is how lingering objects spread forest-wide. It should be enabled everywhere and left that way.

Names used in this article

Every command below uses the same placeholder environment. Substitute your own values.

Placeholder Meaning
corp.example.com Forest root and domain DNS name
DC=corp,DC=example,DC=com Domain naming context
dc01.corp.example.com Healthy, fully up-to-date domain controller used as the reference
dc02.corp.example.com The stale domain controller that is quarantined
HQ-Site The Active Directory site holding both servers

All commands are run from an elevated prompt by an account in Domain Admins, and Enterprise Admins where the configuration or schema partition is involved. repadmin, dcdiag, ntdsutil and netdom ship with the AD DS role and with the Remote Server Administration Tools.

Phase 0: triage before you touch anything

Both recovery methods start here. Phase 0 decides which one you are allowed to use, and skipping it is the most common way these recoveries go wrong.

The triage path. The red branches remove Method 1 from the table entirely.

Stop the stale DC from replicating in either direction

Do this first, before any investigation. While the quarantine holds, the stale DC is contained. The moment anything lifts it, the lingering objects start moving. Blocking replication explicitly means you control when that happens.

Isolate the quarantined domain controller
repadmin /options dc02 +DISABLE_INBOUND_REPL
repadmin /options dc02 +DISABLE_OUTBOUND_REPL

:: confirm both flags are now listed
repadmin /options dc02

Expect DISABLE_INBOUND_REPL and DISABLE_OUTBOUND_REPL to appear under Current DSA Options. Write down what was set before you started, because you will need to restore exactly that state later.

Read the real tombstone lifetime

Never assume 180 days. The value is forest-wide, set when the first domain controller in the forest was built, and plenty of environments carry a shortened value from an old hardening exercise. A two-day tombstone lifetime turns a long weekend into a quarantine.

Read tombstoneLifetime
repadmin /showattr dc01 ^
"CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=corp,DC=example,DC=com" ^
/atts:tombstoneLifetime
PowerShell equivalent
$cfg = (Get-ADRootDSE).configurationNamingContext
$ds  = "CN=Directory Service,CN=Windows NT,CN=Services,$cfg"

(Get-ADObject $ds -Properties tombstoneLifetime).tombstoneLifetime

If the attribute returns nothing it is not set, and the forest falls back to the built-in default of 60 days. Set it to 180 once the incident is closed.

Operating system of the first DC in the forest Default tombstone lifetime
Windows 2000, Windows Server 2003 RTM, Windows Server 2003 R2 60 days
Windows Server 2003 SP1, 2003 SP2, 2003 R2 SP2 180 days
Windows Server 2008 R2 and later 180 days
tombstoneLifetime attribute not set 60 days (internal default)
Collect the replication picture
repadmin /replsummary
repadmin /showrepl dc02
repadmin /showrepl * /csv > C:\Temp\showrepl.csv

:: how far behind this DC is on a given partition
repadmin /showutdvec dc02 "DC=corp,DC=example,DC=com"
PowerShell equivalent
Get-ADReplicationFailure -Target (Get-ADForest).Name -Scope Forest |
    Format-Table Server, Partner, FailureType, FailureCount -AutoSize

Open the CSV and sort by the last successful replication column. You are looking for which partitions are affected, whether the failure is one-way or both ways, and whether any other DC is also drifting towards the limit. Note the full list of naming contexts the stale DC holds from the showrepl output. Every one of them has to be cleaned separately.

Check the clock before you blame anything else

A domain controller whose system time jumped forwards and back will report a replication gap that never happened. Fix the time first, or the server will be quarantined again within days.

Time checks
w32tm /monitor /domain:corp.example.com
w32tm /query /status /verbose

:: on the PDC emulator, confirm it points at a real external source
w32tm /query /source

Rule out a USN rollback. This is the decision point

If the stale DC was restored from a virtual machine snapshot, a disk image, a cloned VHD or a file-level backup, it may have been rolled back to an earlier update sequence number without changing its invocation ID. Changes it has written since then will never replicate out, and no tool will report an error. Windows quarantines a DC that it detects in this state: Net Logon is paused, inbound and outbound replication are disabled, and event 2095 is logged.

A hypervisor that supports VM-GenerationID, with Windows Server 2012 or later as the guest, handles a reverted checkpoint safely. A manually copied or file-restored virtual disk does not change the generation ID and can still produce a rollback, so treat any image-based recovery as suspect until you have checked. Detection is also not guaranteed: the absence of event 2095 is not proof that no rollback occurred, so compare up-to-dateness vectors across partners if the history is unclear.

Look for rollback evidence on the stale DC
$log = @{ LogName = 'Directory Service'; Id = 2095,2103 }
Get-WinEvent -ComputerName dc02 -FilterHashtable $log -MaxEvents 20 |
    Format-List TimeCreated, Id, Message

# the quarantine marker, if rollback detection has fired
Invoke-Command -ComputerName dc02 -ScriptBlock {
    Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters' `
        -Name 'Dsa Not Writable' -ErrorAction SilentlyContinue
}

Get-Service Netlogon -ComputerName dc02

Inventory what the DC is actually carrying

This decides how much work Method 2 will be, and it is also the list you will check against at the end of either method.

What does this DC do?
netdom query fsmo

Get-ADDomainController -Identity dc02.corp.example.com |
    Format-List Name, Site, IsGlobalCatalog, IsReadOnly, OperationMasterRoles

Get-DnsServerZone -ComputerName dc02 | Format-Table ZoneName, ZoneType, IsDsIntegrated

Add anything the directory does not know about: certificate services, DHCP, a hard-coded DNS entry on an appliance, a RADIUS client, an application pointing at this server by name.

Method 1: tell AD to skip the tombstone check and replicate anyway

This method clears the lingering objects from the stale DC, lifts the time-based quarantine with a registry value, lets replication converge, then puts the quarantine back. The database is kept, so anything written only on this DC during the outage survives.

Method 1 end to end. Step 10 is part of the procedure, not an optional tidy-up.

Keep the DC isolated

Section 4.1 already did this. Confirm it is still in place before you continue.

List every partition on the stale DC

Enumerate the naming contexts to clean
repadmin /showrepl dc02

A writable DC that is also a global catalog in a single-domain forest typically holds five partitions. Record the exact distinguished names from the output rather than typing them from memory.

Typical list in corp.example.com
CN=Schema,CN=Configuration,DC=corp,DC=example,DC=com
CN=Configuration,DC=corp,DC=example,DC=com
DC=corp,DC=example,DC=com
DC=ForestDnsZones,DC=corp,DC=example,DC=com
DC=DomainDnsZones,DC=corp,DC=example,DC=com

Choose a reference DC and read its DSA object GUID

The reference DC must hold a current, authoritative copy of each partition you are about to clean. For a domain partition that means a DC in the same domain holding a full writable replica. The command takes the GUID of the reference DC's NTDS Settings object, not its name.

Get the DSA object GUID
repadmin /showrepl dc01 | findstr /i "DSA object GUID"
PowerShell equivalent
$ref = Get-ADDomainController -Identity dc01.corp.example.com
(Get-ADObject -Identity $ref.NTDSSettingsObjectDN -Properties objectGUID).objectGUID
Parameter order for the lingering object commands. Reversing the first two arguments points the comparison at a healthy DC and deletes live data.

Scan in advisory mode and read the result

Advisory mode reports what would be removed and deletes nothing. Run it for every partition and review the output before going further.

Advisory scan, every partition
$suspect = 'dc02.corp.example.com'
$refGuid = '<DSA object GUID of dc01 from step 3>'
$ncs = @(
    'CN=Schema,CN=Configuration,DC=corp,DC=example,DC=com'
    'CN=Configuration,DC=corp,DC=example,DC=com'
    'DC=corp,DC=example,DC=com'
    'DC=ForestDnsZones,DC=corp,DC=example,DC=com'
    'DC=DomainDnsZones,DC=corp,DC=example,DC=com'
)

foreach ($nc in $ncs) {
    Write-Host "=== $nc ===" -ForegroundColor Cyan
    repadmin /removelingeringobjects $suspect $refGuid $nc /advisory_mode
}
Read the findings from the Directory Service log on dc02
# one 1946 per object found; 1942 carries the total for the partition
$found = @{ LogName = 'Directory Service'; Id = 1942 }
$each  = @{ LogName = 'Directory Service'; Id = 1946 }

Get-WinEvent -ComputerName dc02 -FilterHashtable $found -MaxEvents 20 |
    Format-List TimeCreated, Message

Get-WinEvent -ComputerName dc02 -FilterHashtable $each |
    ForEach-Object { $_.Message } | Out-File C:\Temp\LingeringObjects.txt

Remove the lingering objects

Live removal, same loop without the switch
foreach ($nc in $ncs) {
    Write-Host "=== $nc ===" -ForegroundColor Yellow
    repadmin /removelingeringobjects $suspect $refGuid $nc
}

Event 1937 marks the start of removal on a partition, 1945 is logged for each object removed, and 1939 gives the final count. Re-run the advisory scan afterwards and confirm it comes back with nothing.

Confirm strict replication consistency is on everywhere

This is what keeps a missed lingering object contained instead of letting it spread. Confirm it before you lift the quarantine, not after.

Enable and verify
:: + enables, - disables; * targets every DC in the forest
repadmin /regkey * +strict

reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" ^
    /v "Strict Replication Consistency"

Lift the tombstone quarantine

The registry value Allow Replication With Divergent and Corrupt Partner disables the time-based check. Set it on the destination DC that is logging 8614. If replication is failing in both directions, set it on both ends. The change takes effect immediately; no service restart and no reboot are required.

Lift the quarantine with repadmin
repadmin /regkey dc02.corp.example.com +allowDivergent

:: and on any partner that is also logging 8614
repadmin /regkey dc01.corp.example.com +allowDivergent
Registry equivalent, run locally on the DC
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" ^
    /v "Allow Replication With Divergent and Corrupt Partner" /t REG_DWORD /d 1 /f

Re-enable replication and force a sync

Release the isolation and push
repadmin /options dc02 -DISABLE_INBOUND_REPL
repadmin /options dc02 -DISABLE_OUTBOUND_REPL

:: pull one partition from the reference DC and ignore the schedule
repadmin /replicate dc02.corp.example.com dc01.corp.example.com ^
    "DC=corp,DC=example,DC=com" /force

:: then all partitions, push mode, across sites, names shown as DNs
repadmin /syncall dc02 /APed

Verify before you walk away

Verification set
repadmin /replsummary
repadmin /showrepl dc02
dcdiag /s:dc02 /v /c /e

:: SYSVOL and NETLOGON must both be shared on the recovered DC
net share
Confirm the errors have stopped recurring
$log = @{ LogName = 'Directory Service'; Id = 1988,2042 }
Get-WinEvent -ComputerName dc02 -FilterHashtable $log -MaxEvents 20 |
    Format-Table TimeCreated, Id -AutoSize

Check SYSVOL as well as the directory. The DC was offline for months, so its policy and script content is stale and has to converge through DFS Replication before clients get correct Group Policy from it.

Re-arm the protection

Leaving the override in place disables the safeguard permanently, and the next time a DC drifts past the limit nothing will stop it. Remove the value everywhere you set it.

Put the quarantine back
repadmin /regkey dc02.corp.example.com -allowDivergent
repadmin /regkey dc01.corp.example.com -allowDivergent

:: expect the value to be absent or 0
reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" ^
    /v "Allow Replication With Divergent and Corrupt Partner"

Method 2: remove the stale DC entirely and promote it again from clean

This method treats the stale database as unrecoverable. The DC is demoted, every reference to it is removed from the directory and from DNS, the server is rebuilt, and it is promoted again as a new domain controller that replicates a fresh copy of the directory. It is the method Microsoft lists first for event 2042, and in most environments it is both quicker and safer than Method 1.

Method 2 end to end. Steps 4 to 6 are the ones most often left half done.

Inventory and relocate what the DC provides

Use the output from section 4.6. Move DNS clients, DHCP scopes, certificate templates and anything pointing at this server by name before you take it down.

Move the FSMO roles

Transfer, while the DC still responds
$roles = 'SchemaMaster','DomainNamingMaster','PDCEmulator','RIDMaster',
         'InfrastructureMaster'

Move-ADDirectoryServerOperationMasterRole -Identity dc01 -OperationMasterRole $roles
Seize, when it does not
Move-ADDirectoryServerOperationMasterRole -Identity dc01 -OperationMasterRole $roles -Force

netdom query fsmo

Force-demote the stale DC

Run this on the stale DC itself. The force switch removes AD DS without contacting replication partners, which is exactly what you want here. The server becomes a member server and reboots. If it is dead or unreachable, skip this step entirely and go to step 4.

Forced demotion
$pw = Read-Host -AsSecureString 'New local Administrator password'

Uninstall-ADDSDomainController -ForceRemoval -DemoteOperationMasterRole `
    -LocalAdministratorPassword $pw -Force
Optionally remove the role binaries afterwards
Uninstall-WindowsFeature AD-Domain-Services -IncludeManagementTools -Restart

A forced demotion deliberately leaves the object metadata behind on the surviving DCs. Cleaning that up is step 4, and it is mandatory.

Clean the server metadata

Run this from a healthy domain controller in the same domain, ideally one that used to be a replication partner of the removed DC.

ntdsutil, interactive
ntdsutil
metadata cleanup
connections
connect to server dc01.corp.example.com
quit
remove selected server DC02
quit
quit
ntdsutil, single line
ntdsutil "metadata cleanup" ^
  "remove selected server DC02 on dc01.corp.example.com" ^
  quit quit

Where more than one server object shares the name, give the full distinguished name of the server object under CN=Servers in the site instead of the short name.

The graphical equivalent is to delete the DC's computer object from the Domain Controllers container in Active Directory Users and Computers and tick the option that says the domain controller is permanently offline and can no longer be demoted. Deleting the NTDS Settings object in Active Directory Sites and Services does the same thing. All three routes perform the same cleanup, remove the FRS and DFS Replication connections, and attempt to move any operations master roles the server still held.

Clear anything the cleanup left behind

Find what still references the old server
$cfg  = (Get-ADRootDSE).configurationNamingContext
$dom  = (Get-ADDomain).DistinguishedName
$dfsr = "CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,$dom"

Get-ADObject -SearchBase "CN=Sites,$cfg" -Filter "Name -eq 'DC02'" -SearchScope Subtree |
    Select-Object DistinguishedName, ObjectClass

Get-ADComputer -Filter "Name -eq 'DC02'" -SearchBase "OU=Domain Controllers,$dom" `
    -ErrorAction SilentlyContinue

Get-ADObject -Filter "Name -eq 'DC02'" -SearchBase $dfsr -SearchScope Subtree `
    -ErrorAction SilentlyContinue
Remove a leftover object
Set-ADObject -Identity '<distinguished name>' -ProtectedFromAccidentalDeletion $false
Remove-ADObject -Identity '<distinguished name>' -Recursive -Confirm:$false

Delete the empty server object under the site only if it has no child objects left. A child object means another application is using that container, and removing it will break that application.

Clean DNS by hand

Metadata cleanup does not touch DNS. Every one of the following has to be checked and removed, in the domain zone, in the _msdcs zone and in any reverse zone.

  • Host A and AAAA records for the removed server

  • The PTR record in the reverse lookup zone

  • SRV records under _tcp, _udp, _sites and _msdcs, including the _gc records if the server was a global catalog

  • The server's entry on the Name Servers tab of every zone it was listed in

  • The alias in the _msdcs zone, which is named after the DC's NTDS Settings objectGUID rather than its hostname

Find the records that point at the old server
$dns  = 'dc01.corp.example.com'
$zone = 'corp.example.com'

# the GUID alias, located by what it points to rather than by its own name
Get-DnsServerResourceRecord -ComputerName $dns -ZoneName "_msdcs.$zone" -RRType CName |
    Where-Object { $_.RecordData.HostNameAlias -like 'dc02.*' }

# service records in both zones
Get-DnsServerResourceRecord -ComputerName $dns -ZoneName $zone -RRType Srv |
    Where-Object { $_.RecordData.DomainName -like 'dc02.*' }
Get-DnsServerResourceRecord -ComputerName $dns -ZoneName "_msdcs.$zone" -RRType Srv |
    Where-Object { $_.RecordData.DomainName -like 'dc02.*' }

# host records
Get-DnsServerResourceRecord -ComputerName $dns -ZoneName $zone -Name 'dc02'
Remove them
$stale = Get-DnsServerResourceRecord -ComputerName $dns -ZoneName $zone -RRType Srv |
         Where-Object { $_.RecordData.DomainName -like 'dc02.*' }

foreach ($r in $stale) {
    Remove-DnsServerResourceRecord -InputObject $r -ZoneName $zone -ComputerName $dns -Force
}

Rebuild the server

A fresh operating system install is the clean option and the one to choose where you can. If the hardware or the name has to be reused as-is, the minimum is that the AD DS role is removed and the old NTDS database, its log files and the SYSVOL folder no longer exist. Before promoting, set a static address, point the server's DNS client at a healthy DC and not at itself, confirm it is picking up domain time, and patch it to the same level as the rest of the estate.

Promote it again

Pre-flight check
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools

Test-ADDSDomainControllerInstallation -DomainName 'corp.example.com' -InstallDns `
    -Credential (Get-Credential 'CORP\Administrator')
Promotion
Install-ADDSDomainController `
    -DomainName 'corp.example.com' `
    -Credential (Get-Credential 'CORP\Administrator') `
    -SiteName 'HQ-Site' `
    -ReplicationSourceDC 'dc01.corp.example.com' `
    -InstallDns `
    -DatabasePath 'C:\Windows\NTDS' `
    -LogPath 'C:\Windows\NTDS' `
    -SysvolPath 'C:\Windows\SYSVOL' `
    -SafeModeAdministratorPassword (Read-Host -AsSecureString 'DSRM password') `
    -Force

The server is made a global catalog by default; add -NoGlobalCatalog if that is not wanted. Over a slow or expensive link, take a system state backup from a healthy DC, prepare install-from-media with ntdsutil and add -InstallationMediaPath so the initial replication comes off disk instead of the network. The old computer name can be reused, but only once the metadata cleanup in step 4 has fully replicated.

Verify before you walk away

Directory and replication
repadmin /replsummary
repadmin /showrepl dc02.corp.example.com
dcdiag /s:dc02 /v /c /e
nltest /dsgetdc:corp.example.com /force
SYSVOL and role status
net share   # SYSVOL and NETLOGON must both be listed on dc02

Get-WinEvent -ComputerName dc02 -LogName 'DFS Replication' -MaxEvents 50 |
    Where-Object { $_.Id -in 4602,4604,4614 } | Format-Table TimeCreated, Id, Message -Wrap

Get-ADDomainController -Identity dc02.corp.example.com |
    Format-List Name, Site, IsGlobalCatalog, OperationMasterRoles

DFS Replication event 4604 confirms that initial replication finished and SYSVOL has been initialised. Event 4614 on its own means the server is still waiting for its partner, and until that clears the DC will not advertise properly even though directory replication looks healthy.

Put the services back

Return the FSMO roles if that is where they belong, re-add the server to DNS client lists and load balancers, restore monitoring, and add it back to the backup schedule. A domain controller with no system state backup is a domain controller you cannot recover.

What neither method gives you back

Both procedures restore replication. Neither restores the time that was lost, and it is worth being explicit with the business about what that means.

  • Deletions performed on the isolated DC during the outage are silently undone. Its own tombstones have been garbage collected, so when replication resumes those objects come back from the surviving DCs and the deletions have to be repeated.

  • Passwords and account changes made against the isolated DC are stale or, under Method 2, gone. Users who only ever authenticated against that server may need password resets.

  • Group Policy content is stale until SYSVOL converges. Under Method 1 that convergence has to be confirmed, not assumed.

  • Computer accounts that lost their secure channel while the DC was unreachable will need to be reset or rejoined.

  • A system state backup taken from the stale DC before the recovery is not a valid restore source, because it is already older than the tombstone lifetime.

Keeping it from happening again

Every one of these recoveries is the result of a replication failure that nobody acted on for months. The failure itself is usually trivial: a firewall rule, a DNS entry, a decommissioned bridgehead. The cost comes entirely from the delay.

The window you actually have, and what to do in each part of it.
  • Parse a forest-wide replication summary every day and alert on failures, not on thresholds alone.

  • Put any DC that reaches half the tombstone lifetime without a successful replication on a watch list and open a change to clear the fault.

  • At ninety percent of the tombstone lifetime, decide: repair it or force-demote it. Do not let the deadline pass while the ticket is open.

  • Keep strict replication consistency enabled on every DC. It is the difference between one broken server and a forest-wide cleanup.

  • Raise tombstoneLifetime to 180 days if the forest is still on the old 60-day default.

  • Take system state backups of at least two DCs per domain, keep them well inside the tombstone lifetime, and test a restore.

  • Never recover a domain controller from a VM snapshot or a disk image. Use a supported system state restore, or rebuild and re-promote.

  • Alert on Directory Service events 1988, 2042 and 2095, and on DFS Replication events 4612 and 5002.

Command reference

Purpose Command
Block replication on a DC repadmin /options <dc> +DISABLE_INBOUND_REPL / +DISABLE_OUTBOUND_REPL
Read tombstone lifetime repadmin /showattr <dc> "CN=Directory Service,CN=Windows NT,CN=Services,<config NC>"
Forest replication summary repadmin /replsummary | repadmin /showrepl * /csv
Partitions and DSA GUID of a DC repadmin /showrepl <dc>
How far behind a partition is repadmin /showutdvec <dc> "<naming context>"
Find lingering objects repadmin /removelingeringobjects <suspect> <ref GUID> "<NC>" /advisory_mode
Remove lingering objects repadmin /removelingeringobjects <suspect> <ref GUID> "<NC>"
Strict replication consistency repadmin /regkey * +strict / -strict
Lift and restore the quarantine repadmin /regkey <dc> +allowDivergent / -allowDivergent
Force one partition to replicate repadmin /replicate <dest> <source> "<NC>" /force
Push every partition from a DC repadmin /syncall <dc> /APed
Health check dcdiag /s:<dc> /v /c /e
Current role holders netdom query fsmo
Seize a role Move-ADDirectoryServerOperationMasterRole -Identity <dc> -OperationMasterRole <roles> -Force
Force-demote a DC Uninstall-ADDSDomainController -ForceRemoval -DemoteOperationMasterRole
Metadata cleanup ntdsutil "metadata cleanup" "remove selected server <server DN> on <healthy dc>" quit quit
Promote a replica DC Install-ADDSDomainController -DomainName <domain> -SiteName <site> -InstallDns

Event reference

Event Log Meaning
2042 Directory Service Replication with this source has exceeded the tombstone lifetime and has been stopped
8614 repadmin, dcdiag The error code behind event 2042: ERROR_DS_REPL_LIFETIME_EXCEEDED
1988 Directory Service A lingering object was encountered; replication of that partition is halted
1938 Directory Service Advisory scan for lingering objects has started on a partition
1946 Directory Service One lingering object found during an advisory scan, one event per object
1942 Directory Service Advisory scan finished, carries the total count for the partition
1937 Directory Service Lingering object removal has started on a partition
1945 Directory Service One lingering object removed, one event per object
1939 Directory Service Removal finished, carries the total removed
2095 Directory Service USN rollback detected; the DC is quarantined and must be rebuilt
2103 Directory Service The AD database was restored by an unsupported method
1113 / 1115 Directory Service Inbound or outbound replication has been disabled on this DC
4602 DFS Replication SYSVOL replication has been initialised
4604 DFS Replication Initial replication finished and SYSVOL is ready
4614 DFS Replication Waiting on initial replication; the DC will not advertise until this clears

Sources

Everything in this article follows the behaviour documented by Microsoft for Windows Server 2016 through 2025. The primary references are the troubleshooting articles for replication error 8614 and NTDS Replication event 2042, the AD DS server metadata cleanup guide, the USN rollback detection and recovery article, and the command references for repadmin, ntdsutil, Uninstall-ADDSDomainController, Install-ADDSDomainController and Move-ADDirectoryServerOperationMasterRole, all on Microsoft Learn.

share this note

LinkedIn WhatsApp X Email