Show when you last signed in (and failed attempts) — via Microsoft Learn
After signing in, Windows can show the date and time of your last successful sign-in and of any failed attempts since — a simple way to notice someone trying your password.
Sign out and back in
How to do it
- Open
gpedit.msc, go to the path above and set it to Enabled. Set it to Not Configured to undo.
Group Policy
Open gpedit.msc (Pro, Enterprise and Education only) and go to:
Computer Configuration > Administrative Templates > Windows Components > Windows Logon Options > Display information about previous logons during user logon
The policy is stored asDisplayLastLogonInfounderHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. The message must be acknowledged before the desktop appears. Microsoft warns that for domain accounts in domains below the Windows Server 2008 functional level, users can't sign in with this on — fine for local and Microsoft accounts.
Sources
- Policy CSP - ADMX_WinLogon: DisplayLastLogonInfoDescription — by Microsoft Learn
- Administrative Templates (.admx) for Windows 11 2025 Update (25H2) — ADMX policy definitions — by Microsoft
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.