Use it when the device boots but a user cannot sign in or receives credential, account, trust, profile or session errors.
Login Failure
Sign-in failures on Windows happen at one of these steps: the logon screen itself, credential check against the domain or local account database, account state (locked, disabled, expired), loading the user profile, or starting the desktop session. Security event 4625 shows the reason code.
1. Exact error.
2. Account state (enabled, locked, expired).
3. Logon rights and GPO.
4. DC reachable/secure channel for domain users.
5. Profile errors (1511/1515).
credentials → account → rights → DC → profile
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4625} -MaxEvents 50Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting path Verify boundary
Sign-in UI → identity source/DC/local SAM → credential validation → account policy → token → profile → interactive shell
Step 2 Common mistakes Narrow the fault
- Not checking event 4625 status codes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A successful credential check does not prove profile loading or shell startup; a failed sign-in does not by itself distinguish bad credentials from account, trust, DC or profile problems.
- Keep the symptom, observed state and inferred cause as separate statements.
- Prefer evidence from the first failed boundary over broad configuration changes.
- A successful local check does not automatically prove the next dependency or end-to-end workload.
Get-WinEvent -FilterHashtable @{LogName='System';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— system errors last 24hGet-WinEvent -FilterHashtable @{LogName='Application';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— application errorsGet-ComputerInfo -Property OsName,OsBuildNumber,CsDomain— system contextGet-HotFix | Sort InstalledOn -Desc | Select -First 5— recent updates
ReferenceWhy it matters1 section · depth on demand
Method
Login failures:
| Message / event | Cause |
|---|---|
| 4625 status 0xC000006A | Wrong password |
| 0xC0000234 / 4740 | Account locked out — find source with lockout event on PDC |
| 0xC0000072 | Account disabled |
| 0xC000006F | Outside allowed logon hours |
| 0xC000015B | Logon type not granted ("Allow log on through RDS" etc.) |
| "Trust relationship failed" | Broken secure channel |
| "No logon servers available" | DC/DNS unreachable, time skew |
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4740} -ComputerName <PDC> -MaxEvents 10 | Select TimeCreated,@{n='User';e={$_.Properties[0].Value}},@{n='Source';e={$_.Properties[1].Value}}
Lockout loops usually come from stale credentials: mapped drives, services, scheduled tasks, phones syncing mail.
ReferenceImportant terms & boundaries3 sections · depth on demand
What the evidence shows
A successful credential check does not show profile loading or shell startup; a failed sign-in does not by itself distinguish bad credentials from account, trust, DC or profile problems.
In depth
Read event 4625 fields together
PS C:\> Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=(Get-Date).AddHours(-2)} |
Select TimeCreated,
@{n='User';e={$_.Properties[5].Value}},
@{n='LogonType';e={$_.Properties[10].Value}},
@{n='Status';e={'0x{0:X}' -f $_.Properties[7].Value}},
@{n='SubStatus';e={'0x{0:X}' -f $_.Properties[9].Value}},
@{n='Workstation';e={$_.Properties[13].Value}},
@{n='SourceIP';e={$_.Properties[19].Value}}
Logon types (from the 4625 documentation)
| Type | Name | Typical source |
|---|---|---|
| 2 | Interactive | Console |
| 3 | Network | SMB, WinRM, IIS with Windows auth |
| 4 / 5 | Batch / Service | Scheduled task / service account |
| 7 | Unlock | Workstation unlock |
| 8 | NetworkCleartext | IIS Basic auth |
| 10 | RemoteInteractive | RDP |
| 11 | CachedInteractive | Laptop off the network |
Status and sub-status codes
| Code | Meaning |
|---|---|
| 0xC000006A | Bad password |
| 0xC0000064 | User name does not exist (possible enumeration) |
| 0xC000006F | Outside allowed logon hours |
| 0xC0000070 | Not allowed from this workstation |
| 0xC0000072 | Account disabled |
| 0xC0000193 | Account expired |
| 0xC0000234 | Account locked out |
| 0xC000015B | Logon type not granted (for example "Deny log on through Remote Desktop") |
| 0xC000005E | No logon servers available |
Tracing an account lockout
1. On the PDC emulator: event 4740 names the Caller Computer that caused the lockout.
2. On that computer: 4625 events with the user — look at logon type: type 4/5 = a task or service with an old password, type 3 = mapped drive or app, type 8 = something using Basic auth.
3. Also check stored credentials (cmdkey /list), mobile devices using mail with old passwords, and disconnected RDP sessions.
When there is no 4625 at all
Check that Audit Logon failure auditing is enabled (auditpol /get /subcategory:"Logon") and look on the right machine: domain credential failures for network logons are logged on the server receiving the logon, Kerberos pre-auth failures on DCs as 4771.
*The event 4625 logon failure queries above are illustrative examples, not captured from a lab or production system.*
Common causes
| Error | Cause |
|---|---|
| 4625 status 0xC000006A | Wrong password |
| 0xC0000234 | Account locked |
| 0xC0000072 | Account disabled |
| The trust relationship… failed | Computer account password mismatch (Test-ComputerSecureChannel -Repair) |
| Time skew | Kerberos failure |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Troubleshooting → Login Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/troubleshoot/windows/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Troubleshooting → Login Failure reference map
Fast troubleshooting boundaries for Windows Troubleshooting → Login Failure.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Symptom | What the user/workload reports | Starting point, not root cause |
| Local state | What Windows reports at this boundary | Does not prove adjacent dependency |
| Correlated evidence | Multiple sources agree in one timeline | Strengthens hypothesis, not automatic causation |
| Verification | Original test succeeds after controlled change | Required to close the troubleshooting loop |