PlainError

Event ID 4625: An account failed to log on

Updated 2026-12-01 · 7 fixes · expanded guide with sources · how we write fixes

TL;DREvent ID 4625 (Microsoft-Windows-Security-Auditing, Security log) records a failed sign-in on the computer where the attempt was made. The Logon Type says how (2 at the keyboard, 3 over the network, 10 Remote Desktop), Status and Sub Status say why (0xC000006A wrong password, 0xC0000064 no such user, 0xC0000234 locked out), and Source Network Address says from where.

Most likely cause: Someone typed a wrong password or user name

Try first: Read the key fields (Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 10 | Format-List TimeCreated, Message)

Likely causes

  1. Someone typed a wrong password or user namemost likely
  2. A stored old password: a mapped drive, saved credential, scheduled task, service or phone still using a password that was changedpossible
  3. Brute-force or password-spray attempts against Remote Desktop or file sharing exposed to the internetpossible
  4. Account restrictions: disabled, expired, locked out, outside logon hours, or the clock is out of sync with the domain controllerless likely

Why this happens

Windows logs 4625 for any logon failure, on the computer where the attempt was made: a workstation for a local sign-in, a server for a network logon to it. It's part of the Audit Logon and Audit Account Lockout subcategories. Each event identifies the account, how the logon was attempted, and an NTSTATUS code for why it failed.

Most 4625s are harmless typos or forgotten saved passwords. The pattern tells you which: the same real account failing every few minutes is a stored password somewhere; many account names failing from internet addresses is someone guessing passwords.

Logon types in Event 4625

How to fix it

Safest first: SafeChanges settingsDangerous
  1. Read the key fieldsSafe

    Open Event Viewer > Windows Logs > Security (needs admin) and open a 4625. Note Account Name, Logon Type, Failure Reason, Status and Sub Status, Workstation Name, Source Network Address and Caller Process Name.

    Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 10 | Format-List TimeCreated, Message
  2. Summarise who, how and from whereSafe

    Group the last day's failures by user, logon type, status and source address. A few failures for your own user are typos; hundreds for administrator, admin or random names from outside addresses are an attack.

    Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=(Get-Date).AddDays(-1)} | ForEach-Object { $d=@{}; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name]=$_.'#text' }; [pscustomobject]@{User=$d.TargetUserName; Type=$d.LogonType; Status=$d.SubStatus; From=$d.IpAddress} } | Group-Object User, Type, Status, From | Sort-Object Count -Descending | Select-Object -First 15 Count, Name
  3. Decode the status codeSafe

    0xC000006A: right user, wrong password. 0xC0000064: the user name doesn't exist. 0xC000006D: bad user name or authentication information (check Sub Status). 0xC0000234: account locked out. 0xC0000072: account disabled. 0xC0000193: account expired. 0xC0000071: password expired. 0xC0000224: must change password at next logon. 0xC000006F: outside allowed logon hours. 0xC0000133: clock out of sync with the domain controller. 0xC000015B: the account isn't granted this logon type on this PC.

  4. Stale password (type 3, 4 or 5 for a real user): update it where it's storedChanges settings

    Logon type 5 is a Windows service: update the password on the service's Log On tab. Type 4 is a scheduled task: edit the task and re-enter the password. Type 3 from one of your own PCs or a NAS is usually a mapped drive or saved credential: open Credential Manager and update or remove the old entry.

    control keymgr.dll
  5. Attacks over RDP or SMB (types 3 or 10 from public addresses): close the doorChanges settings

    Remove router port forwards for 3389 (Remote Desktop) and 445 (file sharing). Reach the PC through a VPN or Remote Desktop Gateway instead, keep Network Level Authentication on, use long unique passwords, and set an account lockout threshold. Rename or disable unused local admin accounts.

  6. Clock out of sync (0xC0000133): resync timeChanges settings

    Make sure the PC's time zone is right, then resync with the domain or the time server from an administrator terminal.

    w32tm /resync
  7. Locked out (0xC0000234): find the sourceSafe

    On a domain, Event 4740 on the domain controller shows the Caller Computer Name that locked the account; that machine has the stale password. Fix it there, then unlock the account.

Fixing this on several PCs? The Windows Fix & Deploy Toolkit has ready-made PowerShell scripts for it.

For IT admins

Microsoft's monitoring recommendations for 4625 include watching all failures for local and service accounts, bursts of 0xC0000064 (possible user enumeration), and 0xC000006A on critical accounts. Forward Security logs to a SIEM or use Windows Event Forwarding rather than checking machines one by one.

For internet-facing RDP, the fix is not a better lockout number but no direct exposure: VPN, RD Gateway with MFA, or a zero-trust access service. Account lockout thresholds slow guessing but also let attackers lock out real users, so set them with that in mind.

If that didn't fix it

If failures continue after you've updated stored passwords and closed exposed ports, collect a day of 4625 summaries (the grouping command above) and review them with whoever manages your network or firewall. More event guides: [Windows Event IDs](/windows-event-ids).

When to see a technician

If you see successful sign-ins (Event 4624) from addresses you don't recognise, new admin accounts, or ransom notes, disconnect the PC from the network and get professional incident response help.

Questions people ask

Does Event 4625 mean I've been hacked?
No. It means a sign-in failed. Hundreds of failures from internet addresses mean someone is trying, and you should stop exposing that service, but a failure is a blocked attempt, not a breach. Look for 4624 successful logons from the same addresses to be sure.
Why is Source Network Address empty or '-'?
For local logons (types 2, 5, 7) there's no network source. For some network logons Windows can't record the address; use Workstation Name and the logon process fields instead.
Why does a 4625 appear every few minutes for my own account?
Something has your old password saved: a mapped drive, a phone, a scheduled task, a service or a saved Remote Desktop connection. The logon type and workstation name tell you where to look.

Sources

Did this fix it? Report a problem

Related errors

All Windows / PC errors →