How to Fix Windows Event 4625: An account failed to log on
Last reviewed
Error message
Windows Event ID 4625 — An account failed to log on.
Event 4625 is your primary signal for both legitimate user trouble and brute-force attacks. Read the Status and Sub-Status codes to find out which.
What this error means
Windows recorded a failed authentication attempt. The Security event log captures details about who tried, from where, and why it failed.
Why this happens
Wrong password, locked account, expired credentials, account disabled, or a brute-force attempt.
Quick fix (for end users)
- Open Event Viewer → Windows Logs → Security and look for the 4625 event.
- Check the 'Account For Which Logon Failed' and 'Source Network Address' fields.
Admin / engineer fix
Decode the failure reason from the Status / Sub Status hex codes. Common values: 0xC000006A = wrong password, 0xC0000234 = account locked, 0xC000006D = bad username.
Filter for repeated failures from the same IP — that's brute force.
commandGet-WinEvent -FilterHashtable @{ LogName='Security'; Id=4625; StartTime=(Get-Date).AddHours(-24) } | Group-Object @{ Expression = { $_.Properties[19].Value } } | Sort-Object Count -DescendingIf a service account, check whether its password was rotated without updating the service that uses it.
Step-by-step fix
Find the failing event in Event Viewer.
Decode the Status / Sub Status to find the reason.
Address the root cause (password reset, unlock account, block source IP, etc.).
Affected products
Windows Server · Windows 10 · Windows 11
Common variations of this error
People also see these phrasings of the same problem:
Windows audit failure 4625Logon failure event id 4625
Still broken? Try these
- If the source IP isn't recognized, treat as suspicious and investigate.
- Consider account-lockout policy tuning if false-positive lockouts are common.
Related errors
Related searches
- event id 4625 fix
- windows brute force detection
Frequently asked questions
What's the difference between 4624 and 4625?
4624 is a successful logon. 4625 is a failed logon. Both contain similar fields but 4625 also has Status / Sub Status codes describing why the failure happened.
Browse more errors in Windows Admin: Fix Windows administration errors. Access denied, RPC server unavailable, trust relationship failures, Group Policy errors, and network path issues. Or paste your own error into the error decoder tool to find a match. You can also go back to the homepage to browse common errors by topic.