Active Directory is a distributed database with no single source of truth by design. Every writable domain controller accepts changes and reconciles them with every other domain controller through multimaster replication. When that breaks, nothing fails loudly at first. Logons keep working off cached credentials, Group Policy keeps applying from the last good SYSVOL, and the problem grows silently.
Replication failures are the most consequential class of Active Directory incident precisely because they are silent, cumulative, and – when mishandled – self-propagating. The failure mode of Active Directory troubleshooting is not inaction. It is confident wrong action.
In this guide to common Active Directory errors and fixes, you will learn the 30-second triage that tells you which DC is broken, the error codes and what they mean, how to fix trust relationship failures, replication errors, DNS, time skew, FSMO roles, and USN rollback – and which fixes you should never attempt.
30-Second Triage: Is Replication Healthy?
Before diving into detailed diagnostics, run these three commands from an elevated prompt on any domain controller to get a fast read on replication health:
repadmin /replsummary
repadmin /showrepl
dcdiag /test:replications
What each one tells you:
repadmin /replsummaryshows a high-level summary of replication successes and failures across every domain controller, with the largest delta and worst error counts. A healthy output shows 0 failures and deltas within the replication schedule, typically under 60 minutes.repadmin /showrepllists the inbound replication status, partners, and any error codes for the local DC. Add a server name to target a remote DC.dcdiag /test:replicationsruns the built-in replication test and flags connectivity, topology, or RPC problems.
If all three come back clean, replication is healthy. If any report errors, note the error code returned and match it to the table below.
For automation, script repadmin /showrepl * /csv > repl-report.csv and parse for non-zero error counts in a monitoring pipeline. Run the triage daily. A DC showing failures or large deltas needs investigation.
Common Active Directory Error Codes and What They Mean
| Error code | Meaning | Check first |
|---|---|---|
| 1722 | RPC server unavailable | Firewall, DC offline, DNS resolving to wrong IP |
| 1256 | Remote system is not available | Network connectivity between DCs, firewall, VPN, WAN issue |
| 8453 | Replication access denied | Permissions, time skew, secure channel |
| 8524 | DSA operation failed due to DNS lookup failure | DNS records for the DC’s GUID-based CNAME in _msdcs |
| 8606 | Insufficient attributes to create an object | Lingering objects, DC reconnected after tombstone lifetime |
| 8614 | DC cannot replicate, too far behind | Lingering objects, DC offline too long |
| 1908 | Could not find the domain controller | DNS, SRV records, network path |
| 2095 | USN rollback detected | DC restored from snapshot or backup without AD-aware restore |
| 1988 | Lingering object encountered during replication | Lingering objects, strict replication consistency |
| 2042 | DC has not replicated in tombstone lifetime | DC offline longer than tombstone lifetime, default 180 days |
Most replication failures trace back to DNS, time, or network connectivity. Check those three before anything exotic.
Error 1: “The Trust Relationship Between This Workstation and the Primary Domain Failed”
This is the most common Active Directory error users see. The full message reads: “The trust relationship between this workstation and the primary domain failed.” You will only see it on a PC joined to an on-premises Active Directory domain.
The error is about the computer, not the user. Every domain PC has its own account in Active Directory, with a password the PC changes by itself, every 30 days by default. When the copy on the PC and the copy on the server stop matching, the server refuses every domain sign-in from that PC. Your own password still works, and your files are still on the disk.
Common triggers:
- DNS misconfigurations: workstations not pointing to domain DNS servers first
- Network instability: firewalls blocking ports like 445 (SMB) or 135 (RPC)
- Time desynchronisation: clocks differing by more than 5 minutes block Kerberos authentication
- A PC restored from a disk image or backup, or a virtual machine rolled back to a snapshot – the restored PC holds an old computer password the server no longer accepts
- A new or reinstalled PC joined to the domain with the same name – the other PC took over the computer account and changed its password
- The computer account was deleted, often during a cleanup of old computers
- In 2026, with Windows Server 2025 deployments widespread, all DCs on Windows Server 2025 can cause failures on Windows 11 24H2 or older clients due to stricter password protocols. Hybrid Azure AD joins can also break after 24H2 updates.
How to fix it, usually without rejoining:
- Restart once and make sure the PC is on the office network – cable or office Wi-Fi – not a guest network or phone hotspot.
- Sign in with a local administrator account: choose Other user and put .\ in front of the user name.
- No local admin? Unplug the network cable or disconnect Wi-Fi at the sign-in screen, then sign in with a domain account that has signed in to this PC before and is a local administrator on it.
- Once at the desktop, reconnect and run this in Windows PowerShell opened as administrator:
Test-ComputerSecureChannel -Repair -Credential YOURDOMAIN\adminname
Or test first, then repair:Test-ComputerSecureChannel -VerboseTest-ComputerSecureChannel -Repair -Credential (Get-Credential)Reset-ComputerMachinePassword -Server YourDCName -Credential (Get-Credential)
This syncs the password instantly in 99% of cases, and it needs no reboot. - If the message reads “The security database on the server does not have a computer account for this workstation trust relationship”, the computer account was deleted. You will need to rejoin the domain. Read the BitLocker warning first – rejoining can affect BitLocker recovery.
- If several PCs show the error at once, stop and check the server before touching any PC. Several or all PCs failing on the same day means a server-side problem: a domain controller restored from an old backup or snapshot, two servers no longer replicating, or a wrong server clock.
Traditional rejoin method, if the repair does not work: log in as local admin, go to System Properties, change to Workgroup, reboot, then rejoin the domain with admin credentials and reboot. For admins, reset the computer object in Active Directory Users and Computers – right-click, Reset Account – then repair from the client.
Prevention: point workstations at domain DNS servers first, keep clocks synchronised, and do not delete computer accounts for PCs that are still in use. Monitor for Event ID 4771, Kerberos pre-authentication failed, and Event ID 5722, workstation not trusted, in Netlogon logs.
Error 2: Replication Error 1722 – RPC Server Unavailable
Error 1722 means the RPC server is unavailable. The DC cannot reach its replication partner over RPC.
Check first:
- Is the target DC online? Ping it, and check that the NTDS service is running.
- Is DNS resolving to the wrong IP? Run
dcdiag /test:DNSand validate forward and reverse lookups. Confirm SRV records:nslookupset type=SRV_ldap._tcp.dc._msdcs.yourdomain.local
Replication relies on correct SRV records and GUID-based CNAME records in the _msdcs zone. - Is a firewall blocking RPC? Test connectivity with Test-NetConnection on port 135 and the RPC dynamic range. Firewalls between DCs must allow RPC, and the dynamic port range, or replication will fail with 1722.
- Is the DC’s clock correct? Kerberos requires time skew within five minutes. If time drift occurred during patching, replication will fail even though ping works. Check with
w32tm /query /status.
Error 3: Replication Error 1256 – Remote System Not Available
Error 1256 means the remote system is not reachable. This is a network connectivity failure between DCs – firewall, VPN, or WAN issue.
Check first:
- Test connectivity with Test-NetConnection on port 135 and the RPC dynamic range.
- Check the VPN or WAN link between sites. If the link is down, replication will fail with 1256 until it comes back.
- Check Active Directory Sites and Services. If the site link is misconfigured, or the DC is in the wrong site, replication partners will be wrong.
Error 4: Replication Error 8453 – Replication Access Denied
Error 8453 means replication access was denied. The DC’s computer account lacks the required directory replication permissions, or the secure channel is broken.
Check first:
- Verify the DC’s computer account exists and has replication permissions. Protect the replication infrastructure by verifying that the “Replicating Directory Changes” and “Replicating Directory Changes All” permissions on the domain root are assigned only to Domain Controllers and Domain Admins.
- Test the secure channel between DCs:
nltest /sc_verify:yourdomain.local
If this fails, reset the secure channel on the problematic DC:netdom resetpwd /server:HealthyDC /userd:domain\administrator /passwordd:* - Check time synchronisation and certificate validity. If logs show a certificate expired, identify which certificate is referenced. Domain Controllers automatically use Kerberos Authentication certificates when AD CS is deployed. Verify in certlm.msc under Personal and check the validity period. If expired, request a new certificate from the CA or verify auto-enrolment is functioning.
Error 5: Replication Error 8524 – DNS Lookup Failure
Error 8524 means the DSA operation is unable to proceed because of a DNS lookup failure. DNS cannot resolve the target DC’s CNAME or host record.
Check first:
- Run
dcdiag /test:DNSand verify SRV records in the _msdcs zone. - Confirm the NTDS service is running and SYSVOL is shared. Run
net share. You must see SYSVOL and NETLOGON. - Force DNS registration with
ipconfig /registerdns, or restart the Netlogon service. - Even if nslookup returns the correct A record, confirm SRV records and GUID-based CNAME records in the _msdcs zone. Replication relies on them, not just the A record.
For the client-side DNS fixes that also apply here, read our guide on how to fix DNS issues on Windows and Mac.
Error 6: Lingering Objects – 8606, 8614, 1988, and 2042
A lingering object is an object that exists on a DC that was reconnected after exceeding the tombstone lifetime, but was deleted on other DCs. The default tombstone lifetime is 180 days on current forests. If a DC was offline longer than that, it can reintroduce deleted objects.
Event ID 2042 in the Directory Service log is the warning sign. Event ID 1988 means a lingering object was encountered during replication. Error 8606 means insufficient attributes were given to create an object, because a lingering object exists. Error 8614 means the DC cannot replicate because it is too far behind.
How to fix it:
- Identify lingering objects with
repadmin /removelingeringobjectsin advisory mode first, then remove them. Enable strict replication consistency. - Do not run
repadmin /removelingeringobjectscasually. Read Microsoft’s guidance and verify with /advisory_mode first. Pointing it at the wrong reference DC can delete live accounts across the forest. - If replication has been broken for longer than the tombstone lifetime, or if the database integrity is questionable, the supported recovery path is to force demote the failed DC, perform metadata cleanup from a healthy DC, rebuild the server, and promote it again as a new Domain Controller.
Error 7: USN Rollback – Event ID 2095
USN, Update Sequence Number, rollback occurs when a DC is restored from a snapshot or backup without using the proper AD-aware restore procedures – specifically, without using authoritative or non-authoritative restore modes that handle the USN correctly.
USN rollback produces Event ID 2095, replication partner rejected update, and Event ID 1988, lingering objects detected. Detect it with Event ID 2095 on any DC, and check for it in your SIEM. The dcdiag /test:checksecurityerror test also detects USN rollback conditions.
Response: a DC in USN rollback state cannot be reliably fixed. It must be demoted – dcpromo /forceremoval if normal demotion fails – removed from DNS and AD, and rebuilt. Do not clear the Dsa Not Writable registry flag to “fix replication”. That re-injects a rolled-back database and corrupts the topology permanently.
Prevention: never restore a DC from a snapshot. Use AD-aware backup and restore, or demote and promote instead. Restoring a Domain Controller from backup requires authoritative or non-authoritative restore decisions and carries risk if USN rollback conditions are introduced.
Error 8: FSMO Role Failures
FSMO, Flexible Single Master Operations, roles are the five single-master roles in Active Directory: Schema Master, Domain Naming Master, PDC Emulator, RID Master, and Infrastructure Master. If the DC holding a FSMO role goes offline, some operations stop working.
- If the PDC Emulator is down, time synchronisation and password changes can fail.
- If the RID Master is down, new DCs cannot get RID pools, and new accounts cannot be created once the existing pool runs out.
- If the Schema Master or Domain Naming Master is down, you cannot make schema or forest changes.
How to fix it:
- If the FSMO holder is temporarily offline, wait for it to come back. Do not seize a role unless the holder is permanently gone.
- If the holder is permanently dead, seize the role from a healthy DC using ntdsutil or PowerShell. Seizing is a destructive step. Never seize a role from a DC that might come back online – that produces two DCs handing out overlapping RID pools and duplicate security principals.
- After seizing, never bring the old FSMO holder back online. Rebuild it as a new DC.
Error 9: SYSVOL and Group Policy Not Replicating
If SYSVOL is not shared, Group Policy will not apply. Run net share and confirm you see SYSVOL and NETLOGON. If SYSVOL is missing, check the File Replication Service or DFS Replication status, depending on whether your domain uses FRS or DFSR. Modern domains use DFSR. If SYSVOL is not replicating, check the DFS Replication event log for errors, and verify that the DC can reach its replication partners.
How to Force Replication Once the Cause Is Fixed
Once you have fixed the root cause – DNS, time, network, or permissions – force replication:
repadmin /syncall DC02 /AdeP
Or use repadmin /rehost to force a replication from all partners, which is useful for testing or forcing a stale DC to catch up.
Then run the triage again:
repadmin /replsummary
repadmin /showrepl
dcdiag /test:replications
If all three come back clean, replication is healthy. Monitor it for 24 hours to confirm it stays healthy.
When to Demote and Promote Instead of Repairing
A Domain Controller cannot simply be rejoined to the domain like a member server. If Active Directory replication is broken, you must either repair replication or demote and promote again.
Demote and promote is the right choice when:
- Replication has been broken for longer than the tombstone lifetime
- The DC is in USN rollback state, Event ID 2095
- The database integrity is questionable, with Directory Service events 2095, 2103, or database errors
- The DC shows lingering replication errors that cannot be cleaned up safely
The supported recovery path is:
- Force demote the failed DC using Uninstall-ADDSDomainController with ForceRemoval
- Perform metadata cleanup from a healthy DC
- Rebuild the server
- Promote it again as a new Domain Controller
Do not try to repair a DC with a corrupt database. Rebuild it. The entire job is judgement about which DC holds the authoritative copy of the data before you delete anything.
Frequently Asked Questions
What is the most common Active Directory error?
“The trust relationship between this workstation and the primary domain failed” is the most common error users see. It happens when a PC’s computer account password desynchronises from Active Directory. Fix it with Test-ComputerSecureChannel -Repair in PowerShell, without rejoining the domain.
How do I check Active Directory replication health?
Run repadmin /replsummary, repadmin /showrepl, and dcdiag /test:replications from an elevated prompt on any domain controller. If all three come back clean, replication is healthy. If any report errors, note the error code and match it to the error table.
What does replication error 1722 mean?
Error 1722 means the RPC server is unavailable. Check whether the target DC is online, whether DNS is resolving to the wrong IP, whether a firewall is blocking RPC port 135 and the dynamic range, and whether the clocks differ by more than 5 minutes.
What is USN rollback?
USN rollback occurs when a DC is restored from a snapshot or backup without AD-aware restore procedures. It produces Event ID 2095. A DC in USN rollback state cannot be reliably fixed – it must be demoted, removed from DNS and AD, and rebuilt. Never restore a DC from a snapshot.
How do I fix a trust relationship failed error without rejoining?
Log in as a local administrator, open PowerShell as administrator, and run Test-ComputerSecureChannel -Repair -Credential (Get-Credential). This syncs the computer account password instantly in 99% of cases, with no reboot. Rejoining is the last resort.
When should I seize a FSMO role?
Seize a FSMO role only when the holder is permanently dead and will never come back online. Never seize a role from a DC that might come back – that produces two DCs handing out overlapping RID pools. After seizing, never bring the old holder back online.
Conclusion
Most Active Directory errors trace back to DNS, time, or network connectivity. Check those three before anything exotic. Run the 30-second triage daily, so you catch replication failures before they become silent and cumulative.
Fix trust relationship failures with Test-ComputerSecureChannel -Repair, not by rejoining. Fix replication errors by finding the mechanism that stopped converging – DNS, time, firewall, or permissions – and confirm which DC is authoritative before you delete anything. Demote and promote a DC that is in USN rollback or has a corrupt database, instead of trying to repair it.
The failure mode of Active Directory troubleshooting is not inaction. It is confident wrong action. When in doubt, check DNS, check time, check the error code, and do not delete anything until you know which DC holds the authoritative copy.
For the architecture that limits the damage when identity fails, read our complete guide to implementing zero trust security, and for the client-side DNS fixes, read our guide on how to fix DNS issues on Windows and Mac.
Related reading
Related reading on our sister site, The Tribes World: Khasi & Garo Tribes of Meghalaya
