Helpdesk: "The domain controller is logging Event 4776 failures for a service account every few seconds, and the source is a server name nobody recognizes. Is that Kerberos or NTLM, and what is it trying to do?"
Good question, and the event answers part of it. Event 4776 is the domain controller's record that an NTLM credential validation happened, and it carries only three useful fields: the account, the Source Workstation, and the Error Code. Microsoft's reference says it "generates every time that a credential validation occurs using NTLM authentication" and occurs "only on the computer that is authoritative for the provided credentials", which for a domain account is the domain controller.
This post is a read-first order: pull the 4776 events from the DCs, group by account and source workstation, decode the error code, then change one thing. It is the NTLM sibling of the Event 4771 Kerberos pre-authentication failed decoder and the Event 4625 logon failure triage (the target machine's view).
TL;DR
- 4776 means NTLM was used. Kerberos logons show up as 4768/4769/4771, not here.
- It is logged on the authoritative computer: the DC for domain accounts, the local machine for local accounts.
- You only get the source, not the destination. Source Workstation is where the attempt came from; the server it was aimed at is not in this event.
- Read the Error Code first.
0xC0000064is a bad user name,0xC000006Aa bad password,0xC0000234a locked account. - It also fires on workstation unlock, so a handful of failures is not automatically an attack.
Step 1: Pull the events from every DC (read-only)
Run this in an elevated PowerShell on a domain controller. Each DC only logs the validations it handled, so repeat on every DC or query them in a loop.
$events = Get-WinEvent -FilterHashtable @{ LogName='Security'; Id=4776; StartTime=(Get-Date).AddHours(-24) } -ErrorAction SilentlyContinue $rows = foreach ($e in $events) { $x = [xml]$e.ToXml() $d = @{} foreach ($n in $x.Event.EventData.Data) { $d[$n.Name] = $n.'#text' } [pscustomobject]@{ Time = $e.TimeCreated Account = $d.TargetUserName Workstation = $d.Workstation Status = $d.Status DC = $e.MachineName } } "{0} events in 24h" -f @($rows).Count If the count is zero, check the audit policy. Microsoft lists the subcategory as Audit Credential Validation, and the event "shows successful and unsuccessful" attempts only when that subcategory is enabled for the relevant result.
Step 2: Separate failures and group them (read-only)
Success events carry 0x0. Failures carry anything else. Group the failures by the three fields that matter.
$fail = $rows | Where-Object { $_.Status -ne '0x0' } $fail | Group-Object Account | Sort-Object Count -Descending | Select-Object -First 10 Count, Name $fail | Group-Object Workstation | Sort-Object Count -Descending | Select-Object -First 10 Count, Name $fail | Group-Object Status | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize Read the shape before the numbers:
| Pattern | Likely meaning |
|---|---|
| One account, one workstation, steady rate | A service, task, or mapped drive with a stale password |
| One account, many workstations | A user or service signed in on several machines, or a lockout cascade |
| Many accounts, one workstation | A scanner, a misconfigured appliance, or enumeration from that host |
Many accounts with 0xC0000064 | Names that do not exist; compare against your naming convention |
Step 3: Decode the Error Code
These are the common values Microsoft lists for 4776:
| Error Code | Meaning |
|---|---|
0xC0000064 | The user name does not exist (bad username) |
0xC000006A | Misspelled or bad password |
0xC000006D | Generic logon failure; can be a bad user name or password, or a LAN Manager authentication level mismatch between source and target |
0xC000006F | Logon outside authorized hours |
0xC0000070 | Logon from an unauthorized workstation |
0xC0000071 | Expired password |
0xC0000072 | Account disabled by an administrator |
0xC0000193 | Expired account |
0xC0000224 | "Change Password at Next Logon" is flagged |
0xC0000234 | Account locked out |
0xC0000371 | The local account store has no secret material for the account |
Two of these deserve a second look. 0xC000006D is the generic one, so do not stop there: if the account and password are known to be right, suspect the LAN Manager authentication level (the Network security: LAN Manager authentication level policy) on the source or the target. And 0xC0000234 repeating means something keeps retrying a locked account; the lockout triage finds the caller.
Step 4: Identify the source workstation
Source Workstation is a computer name as the client reported it. Resolve it and confirm it is a machine you own.
$src = $fail | Group-Object Workstation | Sort-Object Count -Descending | Select-Object -First 5 -ExpandProperty Name foreach ($s in $src) { "{0}:" -f $s Resolve-DnsName $s -ErrorAction SilentlyContinue | Select-Object Name, IPAddress } An empty name, or a name that does not resolve, often means a device that does not register in DNS (a printer, scanner, or Linux host using Samba). Remember the event does not name the destination server. To find it, take the source machine and look at what it connects to, or check the 4625 events on the likely target servers, where the Caller Process Name and Source Network Address are logged.
Step 5: Correlate with the target's view (read-only)
If the account is hitting a specific server, the matching 4625 on that server has the Logon Type, the process, and the Sub Status. Match by time and account:
# Run on the suspected target server Get-WinEvent -FilterHashtable @{ LogName='Security'; Id=4625; StartTime=(Get-Date).AddHours(-2) } -ErrorAction SilentlyContinue | Select-Object -First 20 TimeCreated, @{n='Msg';e={ ($_.Message -split "`n" | Select-String 'Account Name|Source Network Address|Process Name') -join ' ' }} Local accounts are the exception to the DC-only rule. Microsoft notes that a local logon "will always use NTLM authentication" when the account logs on to the device where it is stored, so 4776 on a member server for a local account is normal. For local account monitoring Microsoft says event 4624 is "more informative."
Step 6: Is NTLM expected here?
Because 4776 is the DC's NTLM log, it doubles as a way to see who still uses NTLM. Microsoft's monitoring recommendations say you can use the event "to collect all NTLM authentication attempts in the domain, if needed." Before you restrict anything, export a week of successes (0x0) grouped by account and workstation, and review the list with application owners. Do not turn on restrictions based on one day of data.
Change one thing
Once the pattern is clear, change exactly one thing and re-run Step 1 an hour later:
- Stale credential on one source: update the service, task, or mapped drive on that machine, not the account.
-
0xC0000234loop: find and fix the caller first, then unlock the account. - Unknown device with a generic
0xC000006D: review the LAN Manager authentication level on that device and the DC with the owner. - Names that do not exist from one host: isolate the host and tell your security contact; do not change accounts.
Common false starts
- "Unlock the account." If something is still retrying with the old password, it locks again in minutes.
- "4776 means Kerberos is broken." It means NTLM was used. That can be expected (IP-address access, local accounts, older clients).
- "Block the workstation." Confirm it is not a legitimate server or appliance first.
- "Error
0xC000006Dis the reason." It is the generic code; read the other fields and the LAN Manager level. - "Disable NTLM to stop the noise." You will break whatever still depends on it. Inventory first.
Related posts
- Event 4625 logon failure (the target machine's view of a failed logon)
- Event 4771 Kerberos pre-authentication failed (the Kerberos counterpart)
- Active Directory account keeps getting locked out (finding the lockout source)
Free checklist
Knowing who still authenticates with legacy methods is the same habit as knowing who a new access policy will hit. The free Conditional Access pre-enforcement checklist keeps break-glass accounts, pilot groups, and report-only review on one page:
If you want the rest of the Intune runway written down for the team (enrollment hygiene, compliance phasing, break/fix cards and read-only PowerShell snapshots), the Intune & M365 Admin Starter Pack pairs with this triage: https://cashflow4375.gumroad.com/l/joonf?utm_source=devto&utm_medium=article&utm_campaign=aps_first_sale&utm_content=event-4776-ntlm-credential-validation
Sources: Microsoft Learn, "4776(S, F): The computer attempted to validate the credentials for an account" (Windows security auditing reference). Commands are read-only unless a step says to change something. Test in a lab first.


