Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Login Failure

Direct answer

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.

When to use this

Use it when the device boots but a user cannot sign in or receives credential, account, trust, profile or session errors.

First 30 seconds

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).

Operational verification

credentials → account → rights → DC → profile

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows servicing, deployment and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows servicing, deployment and recovery · Windows
Key commandGet-WinEvent -FilterHashtable @{LogName='Security';Id=4625} -MaxEvents 50
Scope / prerequisiteUse it when the device boots but a user cannot sign in or receives credential, account, trust, profile or session error…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • Get-WinEvent -FilterHashtable @{LogName='System';Level=1,2;StartTime=(Get-Date).AddHours(-24)} — system errors last 24h
  • Get-WinEvent -FilterHashtable @{LogName='Application';Level=1,2;StartTime=(Get-Date).AddHours(-24)} — application errors
  • Get-ComputerInfo -Property OsName,OsBuildNumber,CsDomain — system context
  • Get-HotFix | Sort InstalledOn -Desc | Select -First 5 — recent updates
ReferenceWhy it matters1 section · depth on demand

Method

Login failures:

Message / eventCause
4625 status 0xC000006AWrong password
0xC0000234 / 4740Account locked out — find source with lockout event on PDC
0xC0000072Account disabled
0xC000006FOutside allowed logon hours
0xC000015BLogon 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)

TypeNameTypical source
2InteractiveConsole
3NetworkSMB, WinRM, IIS with Windows auth
4 / 5Batch / ServiceScheduled task / service account
7UnlockWorkstation unlock
8NetworkCleartextIIS Basic auth
10RemoteInteractiveRDP
11CachedInteractiveLaptop off the network

Status and sub-status codes

CodeMeaning
0xC000006ABad password
0xC0000064User name does not exist (possible enumeration)
0xC000006FOutside allowed logon hours
0xC0000070Not allowed from this workstation
0xC0000072Account disabled
0xC0000193Account expired
0xC0000234Account locked out
0xC000015BLogon type not granted (for example "Deny log on through Remote Desktop")
0xC000005ENo 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows servicing, deployment and recovery current

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%
Terminology layer

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.

Aliases that resolve here
windows login failuresign-in failurecannot log in windows
Embedded reference data

Quick lookup tables

Windows Troubleshooting → Login Failure reference map

Fast troubleshooting boundaries for Windows Troubleshooting → Login Failure.

BoundaryMeaningEvidence limit
SymptomWhat the user/workload reportsStarting point, not root cause
Local stateWhat Windows reports at this boundaryDoes not prove adjacent dependency
Correlated evidenceMultiple sources agree in one timelineStrengthens hypothesis, not automatic causation
VerificationOriginal test succeeds after controlled changeRequired to close the troubleshooting loop
Confirmation

Confirm action

Continue?