SysAdmin Toolbox Guides

Step-by-step troubleshooting guides for sysadmins: Microsoft 365 and Google Workspace email authentication, Exchange Online and Gmail bounce errors, SSL/TLS certificate failures, DNSSEC, and Windows and Active Directory lockouts and trust errors, with free browser tools.

Home › Guides

Atom feed of these guides

Email authentication setup

Microsoft 365 admins can work through the first three in order. SPF and DKIM are prerequisites for DMARC, and all three are required by the Gmail, Yahoo and Outlook.com bulk sender rules. Google Workspace admins can follow the single Google Workspace guide. Once authentication is in place, the MTA-STS and TLS-RPT guide covers encrypting mail sent to your domain, and the BIMI guide covers showing your logo in Gmail, Apple Mail and Yahoo once DMARC is at enforcement.

  1. SPF for Microsoft 365: Publish one SPF record with include:spf.protection.outlook.com, add third-party senders and stay under 10 DNS lookups.
  2. DKIM for Microsoft 365: Create the selector1/selector2 CNAMEs, turn on signing in the Defender portal or PowerShell, and rotate to 2048-bit keys.
  3. DMARC for Microsoft 365: Roll out DMARC from p=none to quarantine to reject with reporting, subdomain policy and Microsoft 365 inbound handling.
  4. SPF, DKIM and DMARC for Google Workspace: Publish the smtp.google.com MX, include:_spf.google.com, a 2048-bit DKIM key with the google selector, and roll DMARC out from p=none to reject.
  5. Gmail, Yahoo and Outlook bulk sender rules: Checklist for domains sending 5,000+ emails a day: SPF, DKIM, aligned DMARC, PTR, TLS, one-click unsubscribe and spam rate limits.
  6. MTA-STS and TLS-RPT setup: Host the mta-sts.txt policy over HTTPS, publish the _mta-sts and _smtp._tls records, and move from testing to enforce on Microsoft 365 or Google Workspace.
  7. BIMI setup (VMC vs CMC): Get DMARC to quarantine or reject, make an SVG Tiny PS logo, choose a VMC or CMC, and publish default._bimi so Gmail, Apple Mail and Yahoo show your logo.

SPF, DKIM and DMARC troubleshooting

Use these when a check fails, a report looks wrong, or you are moving from p=none to enforcement.

  1. Fix SPF too many DNS lookups: Why SPF returns permerror past 10 DNS lookups, what counts (nested includes too), lookup costs of common vendor includes, and fixes before flattening.
  2. Fix SPF include not found and void lookups: Why a missing include: or redirect= target, or more than two void DNS lookups, makes SPF return permerror, how to find the broken term, and how to fix typo includes, retired vendors and empty exists lookups.
  3. Fix SPF permerror: multiple SPF records: Why two TXT records starting with v=spf1 make SPF return permerror, what does and does not count as a second record, and how to merge them into one record under 10 DNS lookups.
  4. Fix DMARC fail with SPF pass (alignment): Why SPF or DKIM can pass while DMARC fails, relaxed vs strict alignment, reading Authentication-Results, and fixes for third-party senders and forwarding.
  5. Fix DMARC fail after forwarding or on mailing lists: Why forwarding breaks SPF alignment and mailing lists break DKIM, how From rewriting, SRS and ARC help, Microsoft 365 trusted ARC sealers, and a safe p=reject rollout for domains whose mail gets forwarded.
  6. DMARC p=none to p=reject rollout plan: A practical plan to move DMARC from p=none to p=quarantine and p=reject: collect rua reports, fix unaligned senders, use pct and t=y, set subdomain policy, and go to enforcement without blocking legitimate mail.
  7. Fix multiple DMARC records or DMARC record not found: Why duplicate v=DMARC1 records at _dmarc stop your policy being applied (RFC 7489 and RFC 9989), and how to fix a record on the wrong name, a doubled host name or a bad v= tag.
  8. Fix DKIM fail: body hash did not verify: Why a DKIM signature fails with body hash did not verify, how bh=, l= and relaxed canonicalization work, and how to find the gateway, footer or forwarder that changed the message.
  9. Fix DKIM no key for signature (permerror): Why a receiver reports dkim=permerror or no key for signature, how to find the key record from s= and d=, and fixes for missing CNAMEs, split TXT strings, revoked keys and DNS errors.
  10. Fix DKIM signature did not verify: Why DKIM fails with signature did not verify when the body hash is fine: signed headers changed in transit, header canonicalization, key mismatch after rotation, and rsa-sha1 or short keys.
  11. Fix Microsoft 365 compauth=fail (reason codes): What composite authentication is, how to read compauth and its reason codes in Authentication-Results, and fixes for unaligned senders, intra-org spoofing, inbound gateways and forwarders.
  12. Fix Microsoft 365 inbound SPF softfail or permerror: What Microsoft 365 does with inbound mail that gets spf=softfail or spf=permerror, how to read Authentication-Results, and how to fix a missing sender, a broken SPF record, a gateway or a forwarder.

Gmail, Yahoo and Outlook.com errors

Bounce and rate-limit messages from the large consumer mailbox providers, including the bulk sender rules.

  1. Fix Gmail 550 5.7.26 (sender is unauthenticated): What Gmail 5.7.26 and the related 4.7.x and 5.7.x authentication bounces mean (SPF, DKIM, DMARC, alignment, PTR, TLS), how to tell which check failed, and the fix for each.
  2. Fix Gmail 421 4.7.28 and 4.7.0 rate limited: What the Gmail deferrals 4.7.28 (unusual rate of unsolicited email) and 4.7.0 mean, which IP, domain, URL or Message-ID quota you hit, Google's 10-minute back-off steps and how to fix volume, complaints and PTR.
  3. Fix Outlook.com 550 5.7.515 (authentication level): What the Outlook.com, Hotmail and Live 5.7.515 bounce means under the Microsoft high-volume sender rules (SPF and DKIM pass, DMARC p=none or stronger, alignment), how to find the failing check, and the fixes.
  4. Fix Yahoo and AOL 554 5.7.9 (policy reasons): What the Yahoo and AOL bounce 554 5.7.9 Message not accepted for policy reasons means, how it relates to DMARC p=reject and forwarding, how to tell it from other Yahoo 554 policy errors, and how to fix authentication.
  5. Fix Gmail 550 5.7.1 (message blocked): What each Gmail 550 5.7.1 rejection means: likely unsolicited email, low IP or domain reputation, IPv6 PTR, RFC 5322 header errors, unauthorized IPs, relay and policy blocks, and the fix for each.

Exchange Online and Microsoft 365 delivery errors

NDR and SMTP error codes from Exchange Online: recipient rejected, forwarding blocked, authentication, mailbox full and traffic not accepted.

  1. Fix Exchange Online 550 5.4.1 Recipient address rejected: What 550 5.4.1 Recipient address rejected: Access denied means, how Directory-Based Edge Blocking and the Authoritative or Internal relay domain type cause it, and fixes for whole domains and hybrid recipients.
  2. Fix Exchange Online 550 5.7.520 external forwarding blocked: Why auto-forwarded mail bounces with 5.7.520 Your organization does not allow external forwarding, how outbound spam policies, remote domains and mail flow rules interact, and how to allow chosen users.
  3. Fix Exchange Online 550 5.7.708 traffic not accepted from this IP: What 5.7.708 Access denied, traffic not accepted from this IP means for new and trial tenants, related 5.7.705 and 5.7.750 tenant blocks, and what to check before contacting Microsoft Support.
  4. Fix Exchange Online 5.7.57 client not authenticated to send mail: Why printers, scanners and apps sending through smtp.office365.com get 5.7.57, how SMTP AUTH is set per tenant and mailbox, security defaults and TLS, and when to use SMTP relay or Direct Send instead.
  5. Fix Exchange Online 550 5.1.10 RecipientNotFound: What 550 5.1.10 RESOLVER.ADR.RecipientNotFound means, and fixes for typos, stale Auto-Complete entries, missing or unlicensed mailboxes, forwarding, accepted domain type and hybrid sync.
  6. Fix Exchange Online 550 4.4.7 message expired: Why Exchange Online returns 4.4.7 QUEUE.Expired after 24 hours of retries, and how to check the destination MX and DNS, TLS certificates, connectors, hybrid routing and duplicate recipients.
  7. Fix Exchange Online 550 5.1.8 access denied, bad outbound sender: Why an account gets restricted from sending (usually compromised), how to secure it, unblock it on the Restricted entities page or with Remove-BlockedSenderAddress, and set outbound spam limits.
  8. Fix Exchange Online 5.7.501, 5.7.502 and 5.7.503 banned sender: What the spam abuse detected and banned sender NDRs mean, the documented fix (secure the account, reset credentials, contact Microsoft Support) and the related IP, tenant and domain bans.
  9. Fix Exchange Online 5.2.2 mailbox full or submission quota exceeded: Tell a sender over the 10,000 recipients per day limit from a full recipient mailbox, then fix quotas, archives, auto-expanding archives, Recoverable Items and public folders.
  10. Fix Exchange Online 550 5.7.1 delivery not authorized or unable to relay: What 550 5.7.1 Delivery not authorized, Unable to relay and Client was not authenticated mean, and fixes for restricted groups, public folders, blocklisted IPs, MX, SPF, hybrid connectors and disabled accounts.
  11. Fix Exchange Online 5.7.133 and 5.7.124 group sender restrictions: Why a distribution group, mailbox, mail user or public folder rejects a sender with 5.7.133, 5.7.124, 5.7.134, 5.7.135 or 5.7.136, and how to allow external or specific senders.
  12. Fix Exchange Online 535 5.7.139 Authentication unsuccessful: Why SMTP AUTH to smtp.office365.com fails with 535 5.7.139: security defaults, tenant and mailbox SMTP AUTH settings, authentication policies, Conditional Access, and moving the app to OAuth.
  13. Fix 550 5.7.509 sending domain does not pass DMARC: Why Microsoft 365 and Outlook.com reject mail from domains with p=reject that fail DMARC, how to read dmarc=fail action=oreject, and how to fix alignment or accept forwarded mail.

SSL and TLS certificate errors

OpenSSL and curl errors when a certificate is expired, issued for the wrong name, untrusted, or the handshake cannot agree on a TLS version.

  1. Fix SSL certificate has expired (CERT_HAS_EXPIRED): Tell an expired server certificate from an expired intermediate, an old root or a wrong clock, check every server and chain with openssl, and plan for 200, 100 and 47-day certificate lifetimes.
  2. Fix SSL certificate name mismatch (ERR_CERT_COMMON_NAME_INVALID): Why a certificate that does not list the hostname fails in browsers, curl and Node.js, how SAN and wildcard matching work, and how to find a missing name, the wrong default certificate or a stale server.
  3. Fix SSL unable to get local issuer certificate: Tell a server missing its intermediate certificate from a client missing a root, check the chain with openssl s_client, and fix it in nginx, Apache, curl and mail servers.
  4. Fix self-signed certificate in certificate chain: What OpenSSL errors 18, 19 and 21 (self-signed certificate, self-signed certificate in certificate chain, unable to verify the first certificate) mean in curl, Node.js, Python and git, and how to trust a private or proxy CA safely.
  5. Fix SSL wrong version number (curl 35): Why curl and OpenSSL report SSL routines::wrong version number: TLS sent to a plain HTTP port, implicit TLS on a STARTTLS port such as 587, or an https:// proxy that only speaks HTTP.
  6. Fix SSL handshake failure and tlsv1 alert protocol version: What TLS alerts 40 and 70 mean, which side refused the handshake, and how to test TLS versions, cipher suites and SNI with openssl s_client and curl.
  7. Fix SSL unexpected eof while reading: Why OpenSSL 3 reports error:0A000126 unexpected eof while reading when a server closes without close_notify, what curl 35 and 56, Python and wget show, and when ignoring it is safe.

DNSSEC

Check whether a domain is signed and what to do when a host move breaks the chain of trust, including Microsoft 365 and Exchange Online mail.

  1. Fix DNSSEC SERVFAIL after a DNS host or registrar change: Why a stale DS record breaks the chain of trust after a DNS provider or registrar move, how to confirm it with dig +cd and Extended DNS Errors, and how to update or remove the DS safely.
  2. DNSSEC and SMTP DANE in Exchange Online: Enable inbound SMTP DANE with DNSSEC for a Microsoft 365 domain, move the MX to mx.microsoft, read Get-DnssecStatusForVerifiedDomain errors and fix 4.7.324 dnssec-invalid.

Windows and Active Directory

Account lockouts, failed logon codes, broken domain trust, Kerberos SPN and clock skew errors, Netlogon 5719, Group Policy 1058/1030, DFSR SYSVOL replication and AD replication errors 1722, 8453, -2146893022, 8614, 8524 and 8456/8457, replication errors 5 (access is denied), 8606 (lingering objects), 8418 (schema mismatch), 1396 (target account name is incorrect), 1753 (no more endpoints from the endpoint mapper), 8451 (database error), 8464 (partial attribute set sync), 8240 (no such object on the server), 8589 (cannot derive an SPN), 1908 (could not find the domain controller), 8461 (replication operation preempted), 8477 (request posted, waiting for reply), 8333 (directory object not found), 1127 (disk operation failed), 8452 (naming context being removed or not replicated), 8304 (maximum object size exceeded), 1818 (remote procedure call cancelled), 1256 (remote system not available), 8446 (failed to allocate memory), 1727 (remote procedure call failed and did not execute) and 8545 (update not applied after a cross-domain move) and KCC events 1311 and 1865, plus DNS lookup events 1925, 2087 and 2088, replication collision events 1083 and 1061 (SAM 12294), Jet database errors such as -1018 and the AD DS install errors the specified user already exists, schema mismatch and FRS still in use (SYSVOL migration to DFSR), plus how to transfer or seize FSMO roles, Access is denied during DC promotion, failed DC demotion, RID allocator event 16650, a new DC that doesn't advertise, Netlogon DNS registration events 5774/5781, Windows Time events 12/29/36/47 and 142, a Netlogon service that won't start, duplicate DC SRV records, domain join error 0x54B, SceCli event 1202, Group Policy event 1006, domain join errors 0x569, 0x216D, 0xAAC, 0x6BA, 0x6D9, 0x40 and 0x0000232A, Access is denied when delegated users join computers, Group Policy events 1101 and 1030, LDAPS (Schannel event 36884, connection problems on port 636 and enabling it with a third-party CA certificate) and LDAP signing and channel binding (events 2887 and 2889), Netlogon event 5807 (clients not mapped to any AD site) and Netlogon event 5722 (session setup from a computer failed to authenticate), with the Event IDs and commands to find the cause. DNS Server and DHCP Server problems have their own group below. Only have an error code? Start with the common AD replication errors table.

  1. Common Active Directory replication errors (codes, causes and fixes): One table of AD replication error codes with hex value, message, typical cause and a fix guide, grouped by network, DNS, authentication, database, objects, topology and informational statuses.
  2. Find the source of an account lockout (Event ID 4740): Read 4740 on the PDC emulator with Get-WinEvent, take the Caller Computer Name, then check 4625 on that computer and 4771 or 4776 on the domain controllers to find what keeps sending the bad password.
  3. Event ID 4625 status and sub status codes: What 0xC000006A, 0xC0000064, 0xC000006D, 0xC0000234 and the other 4625 Status and Sub Status codes mean, how to read logon type and source address, and the matching 4771 Kerberos codes.
  4. Fix the trust relationship between this workstation and the primary domain failed: Test and repair the secure channel with Test-ComputerSecureChannel or nltest /sc_reset, reset the machine password, find out whether the computer or Active Directory has the newer password, or rejoin.
  5. Fix KRB_AP_ERR_MODIFIED (Kerberos event 4, duplicate SPN): Why the server cannot decrypt the Kerberos service ticket, how to find an SPN on the wrong account or registered twice with setspn -Q and -X, and how to move it with setspn -D and -S.
  6. Netlogon event 5719 (no secure session with a domain controller): When 5719 is safe to ignore (startup, Windows Server 2025 restarts) and how to fix DC discovery with nltest /dsgetdc, DNS and port checks, a stopped Netlogon service or the RPC backlog.
  7. Fix Group Policy events 1058 and 1030 (gpt.ini, SYSVOL): What error codes 3, 5 and 53 mean, how to test the gpt.ini path as the failing account, check SYSVOL shares and DFS Replication, LDAP and DNS, and confirm with gpupdate.
  8. Fix DFSR SYSVOL not replicating (events 2213 and 4012): Check each domain controller SYSVOL replication state, resume after a dirty shutdown (2213), recover from content freshness (4012) with a non-authoritative sync, and when an authoritative sync is the right call.
  9. Fix Kerberos clock skew (KRB_AP_ERR_SKEW, 0x25): Why Kerberos fails when clocks differ by more than 5 minutes, where 0x25 shows up (4771, Kerberos event 4), and how to fix time sync with w32tm on members, DCs, the forest root PDC emulator and Hyper-V DCs.
  10. Fix AD replication error 8614 and event 2042 (tombstone lifetime): Why a DC stops replicating after tombstone lifetime days, how to check TSL and time jumps, remove lingering objects with repadmin or LoLv2, and lift the divergent-partner quarantine safely.
  11. Fix AD replication error 1722 (The RPC server is unavailable): Check DNS and the source DC GUID CNAME, test TCP 135 and the dynamic RPC port range, then the RPC ClientProtocols key, NIC drivers, UDP fragmentation and SMB signing.
  12. Fix AD replication error 8453 (Replication access was denied): Grant RODCs Replicating Directory Changes, fix DC userAccountControl flags, check the replication rights on each naming context head, and see who may run repadmin or Replicate now.
  13. Fix AD replication error -2146893022 (The target principal name is incorrect): Stop the KDC on the destination DC and replicate, check the source DC GUID CNAME and host records, purge Kerberos tickets and reset the DC machine password with netdom.
  14. Fix AD replication error 8524 (DNS lookup failure): Fix The DSA operation is unable to proceed because of a DNS lookup failure: remove stale DC metadata, run dcdiag /test:DNS, ping the source DC GUID CNAME and check host record registration.
  15. Fix AD replication errors 8456 and 8457 (rejecting replication requests): Read Dsa Not Writable to tell a USN rollback from a full disk or a corrupt UTD vector, check events 2103, 1393 and 2095, and recover the quarantined domain controller.
  16. Fix KCC event ID 1311 (spanning tree): What NTDS KCC event 1311 means, how to find orphaned sites with repadmin /showism, when site link bridging or preferred bridgeheads cause it, and how to fix replication failures and disjoint site links.
  17. Fix KCC event 1865 (sites cannot be reached): Why the ISTG logs event 1865 with 1311, how to find ISTGs and bridgeheads, test AD ports with PortQry, open the firewall, and check site links when the ports are open.
  18. Fix AD replication error 5 (Access is denied): Run dcdiag /test:CheckSecurityError, then check the secure channel, CrashOnAuditFail, trusts, time skew, RestrictRemoteClients, network logon rights, SMB signing and Kerberos packet size.
  19. Fix AD replication error 8606 (insufficient attributes, lingering objects): Read event 1988 and repadmin /showobjmeta to tell a permanent lingering object from a transient one or a late restore, then remove it with LoL or repadmin, or start garbage collection.
  20. Fix AD replication error 8418 (schema mismatch): Tell a transient schema mismatch after a schema update from a persistent one, compare objectVersion with the registry, restart the source DC, and fix the blocking error such as 1340, 1722 or 8606.
  21. Fix AD replication error 1396 (the target account name is incorrect): Read event 1645 for the replication SPN and KDC, find the global catalog the KDC searches with nltest, look up the SPN with repadmin or dsquery, and fix missing, duplicate or conflict-mangled DC accounts.
  22. Fix AD replication error 1753 (no more endpoints available from the endpoint mapper): Check that AD DS is running on the source DC, that its GUID CNAME resolves to the right computer, and that PortQry shows the MS NT Directory DRS Interface registered with the endpoint mapper.
  23. Fix AD replication error 8451 (the replication operation encountered a database error): Decode the JET error behind 8451, check disk hardware, drivers and firmware, run an offline defrag of ntds.dit or integrity checks, or demote and repromote the DC.
  24. AD replication error 8464 (waiting to synchronize new partial attributes): Why 8464 is normal after a schema or partial attribute set change, events 1704 and 1702, and how to find the global catalog with the old PAS if it lasts over a week.
  25. Fix AD error 8240 (there is no such object on the server): Tell event 1126 (no reachable global catalog) apart from replication 8240, then add or check a GC, or remove, keep or rebuild around the lingering object behind the failed replication.
  26. Fix AD replication error 8589 (the DS cannot derive a service principal name): Match the 8589 failure to event 1411, find the DC behind the GUID and restore the missing or wrong serverReference on its server object with ADSI Edit.
  27. Fix AD replication error 1908 (could not find the domain controller for this domain): Find the KDC the destination DC uses, check its KDC and Netlogon services, dcdiag Advertising and SysVolCheck, clock skew and Kerberos event logging.
  28. Fix AD replication error 8461 (the replication operation was preempted): Check whether the preempted task clears by itself, then tell an overloaded DC from a slow one with repadmin /queue, showutdvec, event 2094 and replication performance counters.
  29. Fix AD replication error 8477 (the replication request has been posted; waiting for reply): Give a new DC time, then check the destination DC for low resources, a high rate of change, third-party software, large legacy groups and recent schema changes.
  30. Fix AD replication error 8333 (directory object not found): Start on the source DC: check for database corruption, lingering objects, CNF conflict objects and third-party antivirus or sync software.
  31. Fix AD replication error 1127 (a disk operation failed even after retries): Pair events 1084 and 2108, act on the JET error they report, and check the disk stack and software that locks the AD database or logs.
  32. Fix AD replication error 8452 (the naming context is in the process of being removed or is not replicated from the specified server): Usually a transient topology change: wait, avoid repadmin /syncall, go direct to the right source DC and fix other replication failures.
  33. Fix AD replication error 8304 (the maximum size of an object has been exceeded): Find the object in event 1084, trim the oversized multi-valued attribute on the source DC, or recycle a deleted object with Remove-ADObject.
  34. Fix AD replication error 1818 (the remote procedure call was cancelled): The RPC Replication Timeout expired before the source DC delivered changes: check bandwidth, dropped packets, speed and duplex, NIC drivers and binding order.
  35. Fix AD replication error 1256 (the remote system is not available): A side effect of an RPC bind failure that cancelled the queued partitions: find the real error with repadmin /showrepl * /csv or repadmin /replicate.
  36. Fix AD replication error 8446 (the replication operation failed to allocate memory): Check physical RAM, the paging file, paged and non-paged pool and lsass.exe virtual bytes against the database cache size.
  37. Fix AD replication error 1727 (the remote procedure call failed and did not execute): The DRSR RPC bind failed after the endpoint mapper answered: take a double-sided capture, test port 135 and the DRS ports with PortQry, and check DNS.
  38. Fix AD replication error 8545 (replication update could not be applied): A cross-domain move the destination DC has not learned about yet: find the old partition, unhost it, replicate, then add it back.
  39. Fix event ID 2087 (DNS lookup failure caused AD replication to fail): The destination DC could not resolve its partner by CNAME, FQDN or NetBIOS name: check the DC is alive, run the dcdiag DNS tests, re-register records and compare NTDS Settings GUIDs.
  40. Fix event ID 2088 (DNS lookup failure, but replication succeeded): The _msdcs CNAME did not resolve and replication only worked through the FQDN or NetBIOS fallback: why to fix DNS anyway and the steps.
  41. Fix event ID 1925 (attempt to establish a replication link failed): Read the error value: 8524 means a DNS lookup failure (fix as for 2087); other values map to the RPC, permission, database and schema guides.
  42. Fix Active Directory Jet database errors (-1018, -510, -528, -1206): What each Jet error on a DC means, the disk and file checks, the esentutl and ntdsutil layer checks, and when to restore, rebuild or defragment offline.
  43. Events 1083 and 1061 (error 8438) and SAM 12294: replication collision: Two DCs changed lockoutTime or a password at once: confirm it with repadmin /showobjmeta and event 1413, and when it is safe to ignore.
  44. Fix AD DS install error: the specified user already exists (0x80070524): A computer account with the new DC name already exists: clean up the old DC metadata and check the helper DC from dcpromoui.log.
  45. Fix DC promotion schema mismatch error (Dcpromo): Turn on NTDS diagnostic logging on the source DC, find the object in event 1240, then remove duplicate values, handle database corruption or strip attributes left by a schema deletion.
  46. Fix DC install blocked: domain still using FRS (migrate SYSVOL to DFSR): Install-ADDSDomainController refuses FRS domains: migrate SYSVOL with dfsrmig through the Prepared, Redirected and Eliminated states, then promote.
  47. Transfer or seize FSMO roles with ntdsutil or PowerShell: Find the role holders, choose transfer or seizure, use Move-ADDirectoryServerOperationMasterRole or ntdsutil, fix RID seizure error 0x20af and clean up the old holder.
  48. Fix Access is denied during DC promotion or demotion: Check the trusted for delegation user right, the Default Domain Controllers Policy and SYSVOL, accidental-deletion protection and the Add/remove replica in domain permission for the NTDS Settings object.
  49. Fix domain controller demotion failures (and force removal): Fix a DNS partition infrastructure master that points at a deleted DC, remove the last replica of an application partition, or force-demote with Uninstall-ADDSDomainController and clean up.
  50. Fix event 16650: RID allocator failed to initialize: Delete stale replication links on a restored RID master, check userAccountControl 532480, the CN=RID Set object and rIDSetReferences, and the RID master replication.
  51. Fix a new domain controller that does not advertise or has no NETLOGON share: DFSR events 4612/4614 waiting for initial SYSVOL replication, the Parent Computer registry value, the SysvolReady toggle for a missing NETLOGON share, and a promotion that hangs with 1908.
  52. Fix Netlogon events 5774 and 5781 (DC DNS SRV registration failed): Check the DC DNS client settings and secure dynamic updates, run dcdiag registerindns and DnsDynamicUpdate, re-register with nltest /dsregdns and verify the SRV records.
  53. Fix Windows Time service events 12, 29, 36 and 47: Decode the Time-Service events, then fix peer names and DNS, UDP 123, client mode 0x8, DCs not advertising as time servers, virtual DCs and the forest root PDC emulator.
  54. Fix a Netlogon service that will not start (events 7001, 7003, 2114 and 7024): Follow the dependency chain from event 7001, fix DependOnService for NETLOGON 2114 and 7024, the startup type after an in-place upgrade, ImagePath, DLLs, permissions and a Paused Netlogon.
  55. Fix Time-Service event 142 (stopped advertising as a time source): Decode the event 142 texts, check the forest root PDC emulator, find a time server with nltest /timeserv, test the source with w32tm /stripchart, and look for VM IC time sync and AnnounceFlags.
  56. Fix duplicate SRV records for a DC with uppercase letters in its name: Install the March 2020 update, keep the lowercase DNS host names policy, remove leftover records with Get- and Remove-DnsServerResourceRecord, or rename the DC in lowercase.
  57. Fix domain join error 0x54B (a domain controller could not be contacted): Read NetSetup.log, test TCP 135, 389, 445 and the RPC ports, point the client at the right DNS server, run nltest /dsgetdc and check the SRV records; plus the related DNS error 0xA8B.
  58. Fix SceCli event 1202 (security policies were propagated with warning): Decode 0x534, 0x6fc, 0x2, 0x5, 0x4b8 and 0xd, turn on Security extension debug logging, search winlogon.log and map GPOPath to the GPO that holds the bad account, service or path.
  59. Fix Group Policy event 1006 (LDAP Bind function call failed): Read error codes 5, 49 and 258 on the Details tab, restore Access this computer from the network on the DCs, check the _ldap._tcp records and port 389 (event 1129).
  60. Fix domain join error 0x569 (the user has not been granted the requested logon type): Give the join account Access this computer from the network on the DCs, fix status 0x32 (Restrict NTLM incoming traffic set to Deny all) and decode other NetSetup.log status codes.
  61. Fix domain join error 0x216D (maximum number of computer accounts exceeded): Check the 10-computer ms-DS-MachineAccountQuota and the Add workstations to domain right, change the quota in ADSI Edit or delegate joins with Reset Password.
  62. Fix domain join error 0xAAC (re-using the account was blocked by security policy): Read NetSetup.log and Netjoin 4101, join as the account creator or delete a stale account, and set the Allow computer account re-use during domain join policy (KB5020276).
  63. Fix LDAPS Schannel event 36884 (the certificate does not contain the expected name): Why LDAPS through a CNAME fails the name check, and the three fixes: extra SAN entries, a HOST record instead of the CNAME, or UseHostnameAsAlias on the client.
  64. Troubleshoot LDAP over SSL (LDAPS) connection problems on port 636: Check the DC Server Authentication certificate, chain and private key with certutil, multiple certificates, an Ldp.exe test on 636, events 1220 and 36884 and Schannel logging.
  65. Enable LDAPS on a domain controller with a third-party CA certificate: Certificate requirements, a certreq request.inf, certreq -accept, the NTDS service store, renewServerCertificate without a restart and an Ldp.exe test on port 636.
  66. Fix domain join status 0x6BA (the RPC server is unavailable), 0x6BF and 0x3A: Find the DC in NetSetup.log, test TCP 135, 445, 389 and 49152-65535 with PortQry, take a trace, and tell 0x6BA apart from 0x6BF/0xC002001C and 0x3A (TCP 389, MTU).
  67. Fix domain join error 0x6D9 (no more endpoints available from the endpoint mapper): Open TCP 135 and the 49152-65535 range to the DC from NETSETUP.LOG, check port exhaustion and host firewalls on the DC, and fixed NTDS and Netlogon RPC ports.
  68. Fix domain join error 0x40 (the specified network name is no longer available): The Kerberos ticket for the SMB session to the DC never arrives: reproduce with net use, read the TGS request in a trace, check WAN accelerators and firewalls.
  69. Fix domain join error code 0x0000232A (DNS server failure): The DC SRV query returned DNS server failure: type the DNS domain name, fix client DNS, root hints or delegation, check SRV records and test with nltest /dsgetdc.
  70. Enable LDAP signing and channel binding on domain controllers (events 2887, 2889, ADV190023): Find unsigned and clear text binds with events 2887 and 2889, require signing on DCs and clients by Group Policy, verify with ldp.exe, and choose a channel binding setting.
  71. Fix Group Policy events 1101 and 1030 (EvaluateDeferredOUs: object cannot be accessed): The Group Policy engine cannot read distinguishedName, gPLink or gPOptions on a parent OU: find the OU in gpsvc.log and grant read access to the users and computers.
  72. Fix Access is denied when delegated users join computers to the domain: Delegated non-admins need Reset Password and three more permissions on computer objects to join a computer whose account already exists; Account Operators need Read on Builtin.
  73. Netlogon event 5807: clients not mapped to any site: Find the NO_CLIENT_SITE clients in netlogon.log, create the missing AD subnet objects with a site, and spot the case where unmapped clients slow down LDAP and Kerberos.
  74. Netlogon event 5722 on a domain controller: Tell a harmless computer password change from an account reset or a duplicate computer name: compare the event time with pwdLastSet and check the secure channel with nltest /sc_query.

Windows DNS Server and DHCP Server

Start with the overview of common Windows DNS Server and DHCP Server errors. DNS Server events 4013, 4000, 4007, 4004, 4016, 4015 and 7062, DNS scavenging (events 2501 and 2502), zone transfers that fail with the Name Servers tab setting, failing forwarders and conditional forwarders and DNS client timeouts with several DNS servers, plus DHCP server authorization failures (event 1046, error 20070), DHCP DNS dynamic updates (event 1056), DHCP failover events 20291 and 20292, PXE boot failures caused by DHCP options 60, 66 and 67 and DHCP clients that cannot get an IP address (Tcpip event 4199), with the Event IDs and commands to find the cause. Also: DNS records that disappear from a zone, zone transfer settings reset after a replication scope change, unwanted network adapters registered in DNS on a multihomed domain controller and DHCP reservation and scope range errors. Plus file shares that fail through a DNS CNAME alias, DNS records that cannot be deleted (Access Denied), DNS servers that cannot resolve Internet names, domain controller DNS client settings, multiple DNS records with the same IP address, PTR records in classless reverse lookup zones and DHCP scopes that run out of addresses, exporting and importing DHCP scopes with netsh or PowerShell, backing up and restoring a DHCP server, DNS server cache snooping findings (disabling recursion), DNS policy query filters that block or allow queries, split-brain DNS with DNS policy zone scopes, zone transfer policies with DNS policy on secondary servers, geo-location DNS policy with weighted load balancing, and DHCP failover partners stuck in COMMUNICATION INTERRUPTED or moved to PARTNER DOWN. KMS and Windows activation errors are in the next group.

  1. Common Windows DNS Server and DHCP Server errors: Every DNS Server and DHCP event and symptom in one set of tables, from 4013 and 4015 to DHCP 1046, 20291 and Tcpip 4199, with the guide that fixes each.
  2. Fix DNS Server event 4013 (waiting for AD DS initial synchronization): Why DNS on a domain controller waits for AD initial sync and boot hangs at Preparing network connections, and how to fix DC DNS client settings, stale DCs and GUID CNAME resolution.
  3. Fix DNS Server events 4000, 4007, 4004 and 4016 (AD-integrated zones not loading): Events 4000 and 4007 with Access Denied in the DNS console mean a broken secure channel: reset it with netdom resetpwd. Events 4016 and 4004 are LDAP update timeouts fixed in April 2024.
  4. Fix DNS Server event 4015 (critical error from the Active Directory): Match the error code: 00002095 is an RODC that cannot reach a writable DNS server, 0000051B a zone owner or Users group problem, ADMIN_LIMIT_EXCEEDED too many orphaned DNS records.
  5. Fix DNS Server event 7062 (packet addressed to itself): Remove the DNS server IP address from its own forwarders, secondary zone masters and notify lists, and fix child domains or reverse zones delegated to a server with no zone for them.
  6. Fix DNS scavenging that is not working (events 2501 and 2502): Check scavenging on the record, zone and server, keep Refresh + No-refresh at least the maximum DHCP lease, use one scavenging server and track the cycle with events 2501 and 2502.
  7. Find why DNS records go missing from a Windows DNS zone: The nine causes Microsoft lists for registered records that disappear, from aggressive scavenging and CNF-mangled zones to DnsAvoidRegisterRecords and leases converted to reservations.
  8. Fix multiple DNS records with the same IP address: Stale records that outlive their DHCP lease, the Kerberos failures they cause, three ways to line up lease time and DNS aging, and a PowerShell check for duplicate IP registrations.
  9. Fix PTR records in a classless reverse lookup zone: Why dynamic PTR updates never work in a subnetted (RFC 2317) reverse zone, when to use a /24 zone instead, and how to delegate a classless reverse zone with CNAME and PTR records by hand.
  10. Fix The record cannot be deleted, Access Denied in a DNS zone: Why DnsAdmins members can be refused when deleting records in AD-integrated zones, and three ways to grant the group Full Control: dsacls, ADSI Edit and the zone Security tab.
  11. Fix DNS zone transfers that fail with the Name Servers tab setting: When a DNS server with several IP addresses only allows transfers to servers on the Name Servers tab, IXFR stops and Zone Not Loaded appears: change the setting or run dnscmd /zoneresetsecondaries.
  12. DNS zone transfer settings reset after a replication scope change: Why Allow zone transfers is cleared on other DCs after you change an AD-integrated zone replication scope (SecureSecondaries 3), and how to back up and restore the settings.
  13. Fix DNS forwarders and conditional forwarders that fail: Check forwarders, root hints and UDP 53, read the capture for Server failure, Refused or Name error, and see why only three forwarders or two conditional forwarders are tried.
  14. Fix a Windows DNS server that cannot resolve Internet names: Internal names work but Internet names fail, or only some domains fail: forwarders, root hints and Cache.dns, root hints that reappear, and firewalls that drop EDNS0 packets.
  15. DNS client timeouts with multiple DNS servers: How long a Windows client waits before trying its second, third and other DNS servers, why a Name Error stops the search, and why a fourth server is too late.
  16. Set the DNS client on domain controllers correctly: What a domain controller should use as preferred and alternate DNS server: itself, another DC or a central server, never the ISP, with Microsoft rules for first and additional DCs and member servers.
  17. Unwanted NIC registered in DNS on a multihomed domain controller: Clients get the address of the wrong network adapter for a DC: the services that register host A records and the three-step fix Microsoft gives.
  18. Fix SMB share access through a DNS CNAME alias: Shares that work by server name but fail through a CNAME with The target account name is incorrect or Access denied: netdom alternate names and BackConnectionHostNames.
  19. Fix DHCP server authorization failures (event 1046, error 20070): Authorize as Enterprise Admin, check Get-DhcpServerInDC and NetServices in ADSI Edit, test LDAP port 389 to the DC and delete CNF objects; audit NetServices if the entry keeps disappearing.
  20. Fix DHCP DNS dynamic updates (event 1056, pen icon, Option 81): Set DNS credentials when DHCP runs on a DC, point scope and server options at DNS servers that accept dynamic updates, and run a full DORA on clients stuck on a cached Option 81.
  21. DHCP failover events 20291 and 20292 (outdated binding information): Why multiple relay agents make failover partners log events 20291 and 20292 and why you can ignore them, plus the Windows Server 2012 fix for partners in different failover states.
  22. Fix PXE boot failures caused by DHCP options 60, 66 and 67 (PXE-E55): Remove options 60, 66 and 67 and use the router IP helper table instead, and fix a DHCP server slowed down by an option 66 server name that cannot be resolved.
  23. Fix a DHCP client that cannot get an IP address (event 4199): Tcpip event 4199 for 0.0.0.0 and BAD_ADDRESS in the DHCP log point to IP Device Tracking ARP probes; also clients moved to another subnet and the DHCP client checklist.
  24. Fix DHCP reservation and scope range errors: The specified DHCP client is not a reserved client and The specified range either overlaps an existing range or is not valid: why both are by design and how to change the scope, plus netsh export Access Denied.
  25. Add addresses to a full DHCP scope: Extend the scope to the whole subnet, resubnet with a larger mask (delete and re-create the scope, conflict detection on) or add a superscope, with the DhcpServer PowerShell cmdlets.
  26. Export and import DHCP scopes with netsh or PowerShell: netsh dhcp server export and import (local Administrators, Access Denied for Domain Admins) and Export-DhcpServer / Import-DhcpServer with -Leases, -ScopeOverwrite, -ServerConfigOnly and -BackupPath.
  27. Back up and restore a Windows DHCP server: Automatic backups every 60 minutes, Backup-DhcpServer, Restore-DhcpServer and netsh backup / restore, the backup and restore folders, and what a DHCP backup leaves out (DNS dynamic update credentials).
  28. Fix DNS server cache snooping findings (disable recursion): KB 2678371: no code fix, three options. Disable recursion in DNS Manager, with dnscmd /Config /NoRecursion 1 or Set-DnsServerRecursion -Enable $false, or keep it for internal clients with a recursion scope.
  29. Block or allow DNS queries with DNS policy query filters: Add-DnsServerQueryResolutionPolicy with IGNORE and FQDN, client subnet or query type criteria for block and allow lists, EQ/NE syntax, processing order, and listing or removing policies.
  30. Split-brain DNS with DNS policy zone scopes: Answer the same name differently for internal and external clients on one DNS server: Add-DnsServerZoneScope, records per scope, server interface or client subnet policies, and Active Directory integrated zones.
  31. Zone transfer policies and DNS policy on secondary servers: Restrict zone transfers with DENY or IGNORE zone transfer policies, and copy zone scopes, client subnets and policies to secondary DNS servers so zone scope transfers work.
  32. Geo-location DNS policy and weighted load balancing: Answer each region from its nearest datacenter with client subnets, zone scopes and ALLOW policies, split answers by weight, and see why the resolver address is what the policy matches.
  33. DHCP failover COMMUNICATION INTERRUPTED and PARTNER DOWN: Why a failover partner waits in COMMUNICATION INTERRUPTED by default, when and how to declare PARTNER DOWN, the state switchover timer, MCLT and the recover states.

Windows activation and KMS

Start with the overview of common Windows activation and KMS errors. KMS clients that cannot find or reach a KMS host (0x8007232A, 0x8007232B, 0x8007267C, 0x8007251D, 0x80092328, 0x800706BA, 0xC004F074, 0xC004F06C and event 8198 with 0xC0020017 or 0x8007139F), KMS hosts with too few clients or that cannot be used (0xC004F038, 0xC004F042) and KMS hosts that do not publish to DNS (event 12293), plus product key and license store errors (0xC004C003, 0xC004C008, 0xC004F050, 0xC004F014, 0xC004F00F, 0xC004F035, 0xC004E015, 0xC004E002), access denied 0x80070005, ADBA clients that do not activate and Security-SPP events 8208, 8200 and 900. More: Windows is not genuine (0x8004FE21, 0xC004F064, 0xC004F065) and OEM and product key errors (0xC004F063, Security-SPP event 1058, 0x80070490). Also: the VAMT error the specified database is not a valid VAMT database, and VAMT proxy activation with the MAK remaining activation count.

  1. Common Windows activation and KMS errors: Every activation error code and Security-SPP event in one set of tables, from 0x8007232B and 0xC004F074 to 0xC004C003, 0xC004E015 and event 12293, with the guide that fixes each.
  2. Fix KMS activation errors 0x8007232A and 0x8007232B: DNS server failure versus DNS name does not exist when you activate Windows with KMS: the causes, the slmgr and psping steps, _vlmcs SRV publishing and the Azure VM options.
  3. Fix activation errors 0x8007267C, 0x8007251D, 0x80092328 and 0x800706BA: A KMS client with no DNS server, no _vlmcs SRV records it can find, or a KMS host it cannot reach on port 1688: ipconfig, nslookup, slmgr -skms tests, suffix search list, MAK and phone fallback.
  4. Fix a KMS host that does not publish to DNS (event 12293): Event 12293 with 0x80072338: the new KMS host has no permission on the existing _VLMCS SRV record. Grant Full Control, check DisableDnsPublishing, publish in more domains or create the record by hand.
  5. Fix KMS activation error 0xC004F074: No Key Management Service could be contacted or the KMS is unavailable: event 12288, clock differences (0xC004F06C), sppsvc on the KMS host, TCP 1688 and the _VLMCS records.
  6. Fix event 8198 KMS contact failure (0xC0020017, 0x8007139F): A KMS client that cannot reach KMS: wrong host name, forced tunneling through a VPN, a stuck sppsvc, port 1688 blocked or DNS failing, with Microsoft five steps.
  7. Fix KMS activation error 0xC004F06C: The request timestamp is invalid: the client clock is too far from the KMS host. Event 12288, the Windows Time service, the NtpClient and NT5DS registry settings, resync and activate.
  8. Fix KMS activation errors 0xC004F038 and 0xC004F042: A KMS host with too few computers in its pool (5 servers, 25 clients) or a client talking to a KMS host that cannot activate it: slmgr /dli, /ckms, /skms, Azure KMS, plus 0xC004F039 and 0xC004F041.
  9. Fix activation errors 0xC004C003 and 0xC004C008: A blocked MAK or a KMS host key past its activation limit: new keys, activation count resets, Azure KMS steps, plus 0xC004C001, 0xC004B100 and 0xC004C020.
  10. Fix activation errors 0xC004F050, 0xC004F014, 0xC004F00F, 0xC004F035 and 0xC004F015: Product key and license state errors: invalid or missing key, hardware out of tolerance, Windows 7 invalid volume license key, and the wrong KMS host key for Windows 10 on a 2012 R2 host.
  11. Fix ADBA clients that do not activate: Active Directory-Based Activation fails on some machines only: slmgr /dlv shows RETAIL channel from MSDN media, event 8198 with 0x8007007B, slmgr /ao-list, install the GVLK and activate.
  12. Fix activation error 0x80070005 access denied: slmgr not elevated, or SELF missing its DCOM access permissions (event 8229), plus 0x8007000D from changed SYSTEM permissions on the Enum Root registry key.
  13. Fix activation errors 0xC004E015 and 0xC004E002: A corrupted or mis-permissioned tokens.dat license store: stop sppsvc, rename tokens.dat, slmgr /rilc, restart twice, reinstall the key, with the folder for every Windows version.
  14. Understand Security-SPP events 8208, 8200 and 900 (0x80072EE7): Genuine ticket acquisition failed because the server has no Internet access. Not a licensing problem: fix access, or opt out of CEIP or turn off the Store depending on the caller.
  15. Fix Windows is not genuine, 0x8004FE21, 0xC004F064 and 0xC004F065: Black desktop and slmgr /dlv fails with 0x80070005: give NETWORK SERVICE its permissions back (Plug and Play GPO, S-1-5-20) or restore the ProfileList keys; plus the non-genuine codes and grace periods.
  16. Fix activation error 0xC004F063, event 1058 and 0x80070490: OEM machines whose BIOS is missing a required license (SLIC, Service Tag after a motherboard swap), Security-SPP warning 1058 on OEM systems, an invalid MAK and the setup product key image mismatch.
  17. Fix VAMT: the specified database is not a valid VAMT database: The account cannot create the VAMT SQL database: sign in as local administrator or grant SQL permissions. Plus the VAMT 3.1 Windows 10 CSVLK error, WMI firewall and workgroup settings, and the x86-only PowerShell module.
  18. VAMT proxy activation and MAK remaining activations: Check how many activations a MAK has left (Refresh product key data online), proxy activate clients without internet access, export a CILX, acquire and apply confirmation IDs, and reapply CIDs after reimaging.

Microsoft 365 for small offices

Practical Microsoft 365 changes and compliance questions for small offices: the SMTP AUTH scan-to-email change, cyber-insurance security questions, and a written information security plan (WISP) for tax preparers.

  1. Scan-to-email and SMTP AUTH: Microsoft disables SMTP AUTH basic authentication by default for existing Exchange Online tenants at the end of December 2026. Check whether your copier or scanner is affected, and what your options are.
  2. Cyber-insurance security questions: Plain-English explanations of the security questions on a cyber-insurance application or renewal: multi-factor authentication, endpoint detection, backups, patching, phishing training, payment verification and an incident response plan.
  3. IRS WISP for tax professionals: Why tax and accounting offices need a written information security plan (WISP), what Form W-12 line 11 actually asks, and a practical outline based on IRS Publication 5708 and the FTC Safeguards Rule.

Tools used in these guides

Audit hundreds of domains at once

Need SPF, DMARC and MX checks across a whole client list? Run the Bulk SPF / DMARC / MX Auditor on Apify ($2 per 1,000 domains).

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.