Affected versions: Windows Server 2022

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Domain controllers fail replication with Kerberos errors, causing stale directory data and authentication anomalies.

Environment & Reproduction

Appears after restoring snapshots or cloned DCs without proper safeguards. Reproduce by attempting inter-site replication.

repadmin /replsummary
repadmin /showrepl

Root Cause Analysis

Machine account password/SPN mismatch causes Kerberos ticket decryption failure (KRB_AP_ERR_MODIFIED).

Quick Triage

Identify affected source/destination DC and confirm secure channel integrity.

nltest /sc_verify:
setspn -Q */

Step-by-Step Diagnosis

Audit SPNs, duplicate entries, and recent VM restore operations.

setspn -X
Get-WinEvent -LogName System -MaxEvents 200 | ? {$_.Message -match 'KRB_AP_ERR_MODIFIED|Kerberos'}
Illustrative mockup for windows-server-2022 β€” terminal_or_powershell
Kerberos and replication diagnostic output β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Reset computer account password for affected DC and refresh Kerberos tickets.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

netdom resetpwd /server: /userd: /passwordd:*
klist purge
repadmin /syncall /AdeP
Illustrative mockup for windows-server-2022 β€” event_or_log_viewer
Replication success events after SPN repair β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Remove duplicate SPNs and restart KDC service if ticket cache corruption persists.

setspn -D  
Restart-Service KDC

Verification & Acceptance Criteria

Replication completes without Kerberos errors and all naming contexts are current.

repadmin /showrepl
repadmin /queue
dcdiag /test:replications

Rollback Plan

If reset causes broader auth failures, restore system state for affected DC and isolate it from replication mesh until repaired.

Prevention & Hardening

Disable unsupported VM snapshot workflows for DCs and enforce AD-safe backup/restore procedures.

Correlates with USN rollback risks, duplicate SID issues, and lingering object cleanup operations.

View all Windows Server 2022 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Microsoft Learn: AD replication troubleshooting, KRB_AP_ERR_MODIFIED handling, and DC virtualization safeguards.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.