Skip to content
Follow
Windows

How to Hide Last User Sign-In on Windows 11

Richard
Written by
Richard
Feb 5, 2026 Updated Aug 13, 2026 4 min read
How to Hide Last User Sign-In on Windows 11
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.

⚡ Quick Answer

Hide the last user sign-in on Windows 11 by opening secpol.msc, navigating to Security Options, and enabling “Interactive logon: Don’t display last signed-in.” Alternatively, use regedit to set the DWORD value “dontdisplaylastusername” to 1. Restart your PC for changes to take effect.

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.

  1. Press Windows key + S, type secpol.msc, and press Enter.
  2. If you don't see it, your version of Windows might not have this tool. This is common in Home editions.
  3. In the window, on the left side, click the arrow next to Local Policies to expand it. Then click Security Options.
  4. On the right side, scroll down and double-click Interactive logon: Don't display last signed-in.
  5. 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).
  6. Click OK to save. ⚠️ Admin privileges required for this step.
  7. Restart your computer to apply the change.
Local Security Policy Editor showing 'Don't display last signed-in' setting
Local Security Policy Editor showing 'Don't display last signed-in' setting

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:

  1. Press Windows key + R, type regedit, then press Enter.
  2. If prompted by User Account Control, click Yes. ⚠️ Admin privileges required for this step.
  3. In the Registry Editor, go to this folder: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  4. If you don't see the System folder, create it:
    • Right-click CurrentVersion, choose New > Key, and name it System.
  5. Click the System folder. On the right side, right-click and choose New > DWORD (32-bit) Value.
  6. Name the new value: dontdisplaylastusername
  7. Double-click this new value. Set the Base to Decimal. Then set the Value data to:
    • 1 to hide the last signed-in user name.
    • Delete the dontdisplaylastusername value to show the last signed-in user name again.
  8. Click OK, close the Registry Editor, and restart your computer.
Registry Editor showing dontdisplaylastusername value
Registry Editor showing dontdisplaylastusername value

📝Important
Registry modifications demand caution because incorrect edits cause system instability. Reviewing instructions on how to back up your registry before starting safeguards the operating system.

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?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Hide Users on Windows 11 Sign-in Screen
Windows How to Hide Users on Windows 11 Sign-in Screen
How to Reset Local Security Policy in Windows 11
Windows How to Reset Local Security Policy in Windows 11
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default
How to Show Email on Windows 11 Sign-In Screen
Windows How to Show Email on Windows 11 Sign-In Screen

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *