Login Failure
Cheat sheet · https://pcornel.dk/topic.php?topic=3381
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.
Remember
- 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.
First checks
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
Commands
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4625} -MaxEvents 50- Operational command for Inspect recent failed Windows logons. Focus fields: time, account, logon type, workstation/sour…
Verify in this order
credentials → account → rights → DC → profile
Where it usually breaks
First mismatch in source/package/image/device identity → servicing/setup configuration → installation/activation → reboot/boot/runtime → system/component health → user/workload validation; preserve identity/native error/pre-state before mutation.
Windows Troubleshooting → Login Failure reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3381