Helpdesk: "A domain controller in the branch office stopped replicating. The Directory Service log shows Event 1988 and says a lingering object was found, blocked, and that replication of the partition was stopped. Somebody wants to flip a registry key so the errors go away, and somebody else wants to demote the DC."
Both ideas skip the useful part. Event 1988 is a protection, not a failure of the DC that logs it. Microsoft's Learn article on Event 1388 and 1988 says that the destination DC has strict replication consistency enabled, was asked to update an object it does not have, and blocked inbound replication of that partition from that source. The article on lingering objects adds the part that is easy to miss: the DC logging 1988 does not hold the lingering object. The source DC named in the event does.
This post is a read-first order: read the event, confirm what the forest's tombstone lifetime and strict consistency settings are, find out why the source fell out of replication, preview the cleanup in advisory mode, and only then delete anything.
TL;DR
- Read the event before touching anything. It names the source DC, the object, the object GUID, and the partition.
- 1988 is the blocked case, 1388 is the reintroduced case. Microsoft says 1388 means strict replication consistency is not enabled and the object was replicated in, and that LOLv2 and Repadmin cannot remove it in that case.
- The lingering object lives on the source DC in the event, not on the DC that logs 1988.
- Find out why the source was out of the topology for longer than the tombstone lifetime (a stored DC, a long WAN outage, a time rollback, a shortened TSL) before cleaning up, or it will happen again.
-
Preview with
repadmin /removelingeringobjects ... /advisory_mode, read the log, then run it again without the switch. - Microsoft's preferred removal tool is Lingering Object Liquidator v2 (LOLv2). Repadmin is the fallback.
- Do not turn strict replication consistency off to quiet the event. That is how a deleted object comes back.
Step 1: Read the event (read-only)
Pull the recent 1988, 1388, and 2042 events from every DC you can reach. The three are related, and the ones logged on other DCs help you see how far the problem spreads.
$dcs = (Get-ADDomainController -Filter *).HostName
foreach ($dc in $dcs) {
try {
Get-WinEvent -ComputerName $dc -FilterHashtable @{
LogName='Directory Service'; Id=1988,1388,2042
} -MaxEvents 20 -ErrorAction Stop |
Select-Object @{n='DC';e={$dc}}, TimeCreated, Id,
@{n='Text';e={($_.Message -replace '\s+',' ').Substring(0,[Math]::Min(300,$_.Message.Length))}}
} catch {
[pscustomobject]@{ DC=$dc; TimeCreated=$null; Id=$null; Text="No events or unreachable: $($_.Exception.Message)" }
}
} | Format-Table -AutoSize -Wrap
Then open one 1988 event in full and write down four things:
| Event field | What you need it for |
|---|---|
| Source DC (Transport-specific network address) | The DC that holds the lingering object. The GUID before ._msdcs identifies it. |
| Object | The distinguished name of the stale object. |
| Object GUID | Lets you look it up on the source and confirm it was deleted elsewhere. |
| Directory partition | The partition DN you pass to the removal command (domain, Configuration, or Schema). |
Microsoft's example event also tells you what the DC did: "This replication attempt has been blocked." Inbound replication of that partition from that source is stopped until the cause is fixed.
Step 2: Sort the event (1988, 1388, or 2042)
| Event | Meaning (per Microsoft Learn) | Next move |
|---|---|---|
| 1988 | Strict replication consistency is on. The update for an object missing locally was refused and replication of the partition from that source was blocked. | Continue with this post. |
| 1388 | Strict replication consistency is off. The destination requested the full object and the lingering object was reintroduced. | Microsoft says LOLv2 and Repadmin cannot remove it in this case. Follow the Learn article's linked guidance for a 1388 scenario. |
| 2042 | The time since the last replication with the source exceeded the tombstone lifetime and replication with it was stopped (repadmin shows 8614). | Work out which DC was disconnected. Microsoft lists demote or reinstall, repadmin /removelingeringobjects, or resume replication (with the divergent partner key) as the options. |
Microsoft's lingering objects article also notes that when a lingering object sits in a read-only partition, the object cannot be updated and the DC does not log an event. So a quiet log is not proof of a clean forest.
Step 3: Check the tombstone lifetime and strict consistency (read-only)
$cfg = (Get-ADRootDSE).configurationNamingContext
Get-ADObject -Identity "CN=Directory Service,CN=Windows NT,CN=Services,$cfg" `
-Partition $cfg -Properties tombstoneLifetime |
Select-Object Name, tombstoneLifetime
Microsoft says the default tombstone lifetime for all currently supported versions of Windows Server is 180 days, and that an existing value does not change when you upgrade a DC. An older forest can legitimately be at 60.
Now read the strict consistency value on the destination DC. Microsoft documents it as Strict Replication Consistency under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters (REG_DWORD, 1 enabled, 0 disabled, default 1 on a new Windows Server and otherwise 0).
$dc = 'DC5.contoso.com' # the DC that logged 1988
Invoke-Command -ComputerName $dc -ScriptBlock {
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters' -Name 'Strict Replication Consistency' -ErrorAction SilentlyContinue
}
If a DC logs 1988, strict consistency is already effectively on there. The check matters for the other DCs: any DC where it is 0 or missing is a DC where the same lingering object would be reintroduced silently as a 1388.
Step 4: Find out why the source was out of the topology (read-only)
Microsoft's article lists what causes lingering objects. Ask which one fits the source DC named in the event:
- A DC was taken off the network and put in storage.
- A DC was pre-staged and shipped to a remote site, and the tombstone lifetime expired before it arrived.
- A DC could not reach the WAN for a long period.
- Someone shortened the tombstone lifetime to force garbage collection.
- The system clock on the source or destination was advanced or rolled back, which Microsoft says is most common after a DC restarts (a bad clock battery, a wrong time source, or someone changing the clock to extend a system state backup).
Check the replication health of the source and its partners:
repadmin /replsummary
repadmin /showrepl * /errorsonly
repadmin /showrepl SOURCEDC.contoso.com
An 8614 or 8606 on those results lines up with the 2042 and lingering object pattern. If the source is still failing replication for another reason (DNS, RPC, firewall), fix that first. See the related posts below.
Step 5: Identify the reference DC GUID (read-only)
The removal command needs the GUID of a DC that has an up-to-date, writable replica of the partition named in the event. Microsoft's procedure is to run repadmin /showrepl <ServerName> and copy the objectGuid value from the first section of the output.
repadmin /showrepl GOODDC.contoso.com | Select-String -Pattern 'objectGuid' -Context 0,0
Pick a DC you trust, one that is healthy and replicating, and hold a writable copy of that partition. Do not pick the source named in the event.
Step 6: Preview the cleanup in advisory mode (read-only)
Microsoft's preferred method is Lingering Object Liquidator v2. If you cannot use it, Repadmin is the documented fallback. The syntax from the Learn article is:
repadmin /removelingeringobjects <ServerName> <ServerGUID> <DirectoryPartition> /advisory_mode
-
<ServerName>is the DC named in the event that holds the lingering objects (DNS name or distinguished name). -
<ServerGUID>is the reference DC GUID from Step 5. -
<DirectoryPartition>is the partition DN from the event, for exampleDC=sales,DC=contoso,DC=com,CN=configuration,DC=contoso,DC=com, orCN=schema,CN=configuration,DC=contoso,DC=com. -
/advisory_modelogs what would be removed without removing it.
Run it, then read the Directory Service log on the server you targeted. Review the object names. If a name is something you did not expect to be deleted, stop and verify it against the reference DC before going any further.
Step 7: Run the real removal (deliberate change)
This step deletes objects. Do it only after the advisory run looks right, and only after you have a recent system state backup.
repadmin /removelingeringobjects <ServerName> <ServerGUID> <DirectoryPartition>
Microsoft's required membership is Domain Admins in the domain of the DC with the lingering objects, or Enterprise Admins if the partition is Configuration or Schema. Repeat for every DC that might hold lingering objects. Microsoft's note says the server name parameter accepts the DC_LIST syntax, so * means all DCs and gc: means all global catalog servers. Be careful with wildcards on the real run. Use them in advisory mode first.
Because a global catalog also holds read-only copies of objects from other domains, include the GCs in the sweep.
Step 8: Protect against a repeat (deliberate change)
-
Enable strict replication consistency where it is off. Microsoft's Repadmin command is
repadmin /regkey <DC_LIST> +strict. Editing the registry directly is the alternative, and Microsoft recommends against it unless there is no other way. -
Make sure newly promoted DCs get strict consistency. Microsoft documents an LDIF object (
CN=94fdebc6-8eeb-4640-80de-ec52b9ca17fa,CN=Operations,CN=ForestUpdates,CN=Configuration,...) imported withldifde -i -ffor that purpose. Read the Learn article before creating it. - Keep any DC offline for less than the tombstone lifetime. If one has to be offline longer, plan to demote or rebuild it, not bring it back.
-
Raise a short tombstone lifetime to the 180-day default if you can justify it. Microsoft gives a
Set-ADObject ... -Replace @{tombstonelifetime='180'}example. Treat this as a forest-wide change and do it after you understand why it was shortened. - Watch the clocks. Make sure the time source is right so no DC sits ahead of or behind the others.
Step 9: Prove it (read-only)
repadmin /replsummary
repadmin /showrepl * /errorsonly
Get-WinEvent -ComputerName 'DC5.contoso.com' -FilterHashtable @{ LogName='Directory Service'; Id=1988,1388,2042; StartTime=(Get-Date).AddHours(-24) } -ErrorAction SilentlyContinue
You are done when the partition replicates from the source without errors, no new 1988, 1388, or 2042 events appear after the cleanup, and the objects you reviewed in advisory mode are gone from the source. Also look at symptoms Microsoft lists for lingering objects: a deleted user still in the global address list, duplicate objects with CNF names, or "object already exists" errors with nothing visible.
Common false starts
- "Disable strict replication consistency so it stops erroring." That lets the lingering object replicate in as a 1388, and a deleted object reappears.
- "Run removal on the DC that logged 1988." Microsoft's article says the lingering object is on the source DC, not on the DC that logs 1988.
- "Skip advisory mode, it's quicker." The advisory run is the only chance to review the list before deletion.
- "Point the reference GUID at the source." The reference is a healthy DC with an up-to-date writable replica.
- "Fix it and forget it." Without finding out why the DC was disconnected longer than the tombstone lifetime, it comes back.
- "Demote it right away." That is a valid option in the 2042 guidance, but not required when the cleanup is simple and replication is otherwise healthy.
FAQ
What is the difference between Event 1388 and Event 1988?
Both mean a lingering object was detected. With 1388, strict replication consistency is off and the object was replicated into the destination DC. With 1988, strict consistency is on and replication of the partition from that source was blocked.
Which DC has the lingering object when I see Event 1988?
The source DC named in the event. Microsoft says lingering objects do not exist on the DC that logs 1988.
What is a tombstone lifetime?
The period a deleted object's tombstone is kept before permanent removal. Microsoft says the default for all currently supported Windows Server versions is 180 days, and that upgrading a DC does not change an existing value.
Is LOLv2 or Repadmin better?
Microsoft calls LOLv2 the preferred method and Repadmin the option when LOLv2 cannot be used.
Does advisory mode change anything?
No. Microsoft describes /advisory_mode as logging the lingering objects that would be removed without removing them.
Can I get lingering objects with a DC that was offline for less than the tombstone lifetime?
Yes, if the TSL was shortened or a system clock was advanced or rolled back.
Related posts
- Active Directory replication error 1722 (when the source is failing replication for RPC or DNS reasons)
- FSMO role transfer failed (when a DC is out of date and a role holder decision is waiting)
- DNS Event ID 4013 (when a DNS server is waiting for AD DS to finish initial sync)
Free checklist
Cleaning up a directory is a good moment to review who can change it. The free Conditional Access pre-enforcement checklist keeps break-glass accounts, pilot groups, and report-only review on one page:
If you want the rest of the Intune runway written down for the team (enrollment hygiene, compliance phasing, break/fix cards and read-only PowerShell snapshots), the Intune & M365 Admin Starter Pack pairs with this triage: https://cashflow4375.gumroad.com/l/joonf?utm_source=devto&utm_medium=article&utm_campaign=aps_first_sale&utm_content=ad-event-1988
Top comments (0)