Skip to content

Show when you last signed in (and failed attempts) — via Microsoft Learn

Group Policylow riskNeeds adminProEnterpriseEducationWindows 11Windows 10

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

  1. 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 as DisplayLastLogonInfo under HKLM\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

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.

last logonfailed sign-insecuritylogon

More in Sign-in, Boot & Shutdown