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.
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.
SPF for Microsoft 365: Publish one SPF record with include:spf.protection.outlook.com, add third-party senders and stay under 10 DNS lookups.
DKIM for Microsoft 365: Create the selector1/selector2 CNAMEs, turn on signing in the Defender portal or PowerShell, and rotate to 2048-bit keys.
DMARC for Microsoft 365: Roll out DMARC from p=none to quarantine to reject with reporting, subdomain policy and Microsoft 365 inbound handling.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Windows Event ID Lookup and PowerShell Cheat Sheet (Active Directory lockouts, logon failures, secure channel repair, Kerberos SPNs and clock skew, Netlogon, Group Policy, DFSR SYSVOL and AD replication)