How to Hide Last User Sign-In on Windows 11
Hiding the last user sign-in on Windows 11 stops the lock screen from showing the name or profile picture of the person who used the PC last. This built-in privacy setting keeps your account name hidden so nobody walks up and sees who was just on your computer.
Windows 11 Pro, Enterprise, and Education editions let you turn on this setting using the built-in Group Policy Editor. Setting up this block takes less than two minutes and works every time your PC starts up or wakes from sleep.
What is the Lock Screen and Sign-In Screen?
The Windows 11 lock screen and sign-in screen appear during startup or after locking the machine. Default behavior displays the last user’s name and picture to speed up sign-in. Hiding this information prevents the system from broadcasting who logged in last.
Windows normally shows the full name and picture of the previous person who signed in. Alternative accounts remain accessible for selection when switching users.
Why Hide the Last Signed-In User?
Windows 11 permits hiding the last sign-in name to increase privacy on shared or public computers. Restricting this detail stops onlookers from seeing who last used the PC, enhancing overall security.
How to Hide or Show the Last Signed-In User Name
Two methods exist for changing this setting: the Local Security Policy Editor or the Windows Registry Editor. Selecting a method depends on the available system tools.
Method 1Using Local Security Policy Editor
Hiding the last user sign-in on Windows 11 functions through the Local Security Policy Editor (a built-in tool for managing security policies on Pro, Enterprise, and Education editions). Pressing the Windows key + S opens search, where typing secpol.msc and hitting Enter launches the tool.
- Press Windows key + S, type
secpol.msc, and press Enter. - If you don't see it, your version of Windows might not have this tool. This is common in Home editions.
- In the window, on the left side, click the arrow next to Local Policies to expand it. Then click Security Options.
- On the right side, scroll down and double-click Interactive logon: Don't display last signed-in.
- In the window that pops up, choose:
- Enabled to hide the last signed-in user's name.
- Disabled to show the last signed-in user's name (this is the default).
- Click OK to save. ⚠️ Admin privileges required for this step.
- Restart your computer to apply the change.

Method 2Using Windows Registry Editor
Systems lacking the Local Security Policy Editor can hide the last user sign-in using the Registry Editor (an advanced database for system configurations requiring administrator permission). Pressing the Windows key + R opens the run dialog, where typing regedit and pressing Enter launches the editor.
Open the Registry Editor:
- Press Windows key + R, type
regedit, then press Enter. - If prompted by User Account Control, click Yes. ⚠️ Admin privileges required for this step.
- In the Registry Editor, go to this folder:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - If you don't see the System folder, create it:
- Right-click CurrentVersion, choose New > Key, and name it System.
- Click the System folder. On the right side, right-click and choose New > DWORD (32-bit) Value.
- Name the new value:
dontdisplaylastusername - Double-click this new value. Set the Base to Decimal. Then set the Value data to:
1to hide the last signed-in user name.- Delete the
dontdisplaylastusernamevalue to show the last signed-in user name again.
- Click OK, close the Registry Editor, and restart your computer.

Summary
- You can hide the last signed-in user's name on the Windows 11 sign-in screen to protect your privacy.
- The easiest way is through the Local Security Policy Editor. If that's not available, use the Registry Editor instead.
- After making changes, always restart your PC to see the effect.
- These settings help keep your computer more secure and private.
- For more details, check the official Microsoft page: Interactive logon: Do not display last user name - Microsoft Docs
Masking the final signed-in user name on the Windows 11 sign-in screen protects personal privacy. The Local Security Policy Editor offers the most direct approach for compatible editions. Utilizing the Registry Editor serves as the alternative when policy editors are unavailable. Restarting the PC applies the modifications permanently.
How to hide last logged on user?
Reviewing the policy description confirms that enabling this rule hides the username, so applying this configuration prevents the name from appearing on screen before signing out.
How do I disable the last user login in 🪟 Windows 10?
Computer Configuration > Policies > Windows settings > Security Settings > Local Policies > Security Options > “Interactive Logon: Do not display last user name” - enabled. This stops the last username used from being displayed.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!