Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to Hide or Show User Accounts from Login Screen on Windows 10 and 11

How to Hide or Show User Accounts from Login Screen on Windows 10 and 11

Posted on 05/10/202303/11/2023 Matthew By Matthew No Comments on How to Hide or Show User Accounts from Login Screen on Windows 10 and 11
Hide or Show User Accounts from Login Screen on Windows 10 and 11
Hide or Show User Accounts from Login Screen on Windows 10 and 11

The Windows login screen is the gateway to your computer, and it often displays the last user who logged in by default. However, this can pose security risks and may not always be ideal for shared or public computers. In this comprehensive guide, we will explore various methods to customize the user display on the Windows login screen to suit your needs. Please see Display logon banners for Windows PCs via Windows Registry, How to make a screenshot of Windows 10 Screen / Login Screen, How to prevent the on-screen keyboard from starting automatically and from appearing at login, and Windows sign-in options and account protection on Windows 11.

Hiding the Last Username on Windows Logon Screen

Displaying the last logged-in username on the Windows login screen can be convenient but risky, as it can make it easier for unauthorized users to access your computer. To hide the last username, follow these steps:

Using Group Policy Editor (GPO):

Press Win + R, type gpedit.msc, and hit Enter to open the Group Policy Management Console.

Hide or Show User Accounts from Login Screen: Run utility for Group Policy
Run utility for Group Policy

Navigate to the following path:

Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options
Hide or Show User Accounts from Login Screen: Navigate to interactive logon don't display last signed-in
Navigate to interactive logon don’t display last signed-in

Enable the policy “Interactive logon: Don’t display last signed-in” (this policy is disabled by default).

Hide or Show User Accounts from Login Screen: Enable don't display last signed-in
Enable don’t display last signed-in

Using Registry Editor:

Press Windows key and type regedit, to open the Registry Editor in the Start menu.

Hide or Show User Accounts from Login Screen: Registry Editor
Open the Registry Editor

Navigate to the following registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Hide or Show User Accounts from Login Screen: Navigate to don't display last username
Navigate to don’t display last username

Create a new DWORD parameter named dontdisplaylastusername with a value of 1.

Hide or Show User Accounts from Login Screen: Enter 1 as the value data
Enter 1 as the value data

Hiding Username on Computer Lock Screen

To hide the username on the computer lock screen (triggered by Win+L or lock screen GPO), follow these steps:

Using Group Policy Editor (GPO):

Press Win + R, type gpedit.msc, and hit Enter to open the Group Policy Management Console.

Hide or Show User Accounts from Login Screen: Run utility for Group Policy
Run utility for Group Policy

Navigate to the following path:

Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options
Hide or Show User Accounts from Login Screen: Navigate to Interactive logon Display user information when the session is locked
Interactive logon: Display user information when the session is locked

Enable the policy “Interactive logon: Display user information when the session is locked” and set the value to “Do not display user information.”

Select do not display user information
Select do not display user information

Using Registry Editor:

In the Registry Editor, find the key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Don't display locked user ID
Don’t display locked user ID

Locate or create a DWORD parameter named DontDisplayLockedUserId and set its value to 3.

Enter 3 as the value data
Enter 3 as the value data

Now, both the computer login screen and lock screen will display blank username and password fields.

Showing All Users on Windows 10/11 Sign-in Screen

By default, Windows 10 and 11 display a list of enabled local users on the login screen. To ensure this list is visible, follow these steps:

Using Group Policy Editor (GPO):

Press Win + R, type gpedit.msc, and hit Enter to open the Group Policy Management Console.

Run utility for Group Policy
Run utility for Group Policy

Confirm that “Interactive Logon: Do not display last signed-in” is set to Disabled in Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options.

Navigate to the following path:

Computer Configuration -> Administrative Templates -> System -> Logon
Enumerate local users on domain-joined computers
Enumerate local users on domain-joined computers

Enable “Enumerate local users on domain-joined computers“

Enable Enumerate local users on domain-joined computers
Enable the option

Ensure “Do not enumerate connected users on domain-joined computer” is Disabled or Not Configured in the same GPO section.

Set the setting to not configured or Disabled
Set the setting to not configured or Disabled

Restart your computer to apply the new Group Policy settings. This should display the list of local users on the login screen.

Showing Logged In Domain Users on Windows Login Screen

If your computer is used by multiple domain users, you can display a list of users with active sessions on the welcome screen. To achieve this, follow these steps:

Using Group Policy Editor (GPO):

Press Win + R, type gpedit.msc, and hit Enter to open the Group Policy Management Console.

Run utility for Group Policy
Run utility for Group Policy

Ensure the following policies under Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options are set to Disabled:

  • Interactive logon: Don’t display last signed-in
  • Interactive logon: Don’t display username at sign-in
Security options
Security options

Also, disable the policies in Computer Configuration -> Administrative Templates -> System -> Logon:

  • Block user from showing account details on sign-in
  • Do not enumerate connected users on domain-joined computer
Disable logon options
Disable logon options

After applying these changes, the welcome screen will display a list of logged-on users, including those with active sessions.

Please note that Group Policy settings on domain computers may be managed by domain administrators, so ensure that local GPO settings are not overridden by domain GPOs using tools like rsop.msc or gpresult.

Hiding Specific User Accounts from the Sign-in Screen

If you want to hide specific user accounts from the Windows login screen, you can do so through the registry. Follow these steps:

Using Registry Editor:

Open the Registry Editor (regedit), and navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

Right-click on the Winlogon key and select New > Key name the SpecialAccounts. Right-click the SpecialAccount key and create a New > Key named UserList.

Create user list key
Create user list key

Create a new DWORD32 parameter for each user you want to hide. Set the username as the parameter name and its value as 0.

Enter 0 as the value data to hide specific accounts
Enter 0 as the value data to hide specific accounts

To show a hidden user on the login screen again, either delete the registry parameter or change its value to 1.

Conclusion on how to Hide or Show User Accounts from Login Screen

Customizing the Windows login screen can enhance security and user experience based on your specific requirements. Follow these steps carefully to tailor the login screen to your needs while maintaining the desired level of security.

FAQs Relating Hiding or Showing Windows User Accounts from the Login Screen

How can I hide the last username displayed on the Windows login screen to enhance security?

You can hide the last logged-in username on the Windows login screen by using either the Group Policy Editor (GPO) or the Registry Editor. To achieve this through GPO, open the Group Policy Management Console (gpmc.msc), navigate to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options, and enable the policy “Interactive logon: Do not display last user name.” Alternatively, using the Registry Editor, go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System, and create a new DWORD parameter named dontdisplaylastusername with a value of 1.

Can I display a list of all enabled local users on the Windows login screen?

Yes, by default, modern versions of Windows display a list of all enabled local users on the login screen. However, to ensure this list is visible, you may need to confirm certain Group Policy settings. Open the Group Policy Management Console (gpmc.msc), ensure that “Interactive Logon: Do not display last signed-in” is set to Disabled under Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options. Also, enable “Enumerate local users on domain-joined computers” in Computer Configuration -> Administrative Templates -> System -> Logon.

How can I hide specific user accounts from the Windows login screen?

To hide specific user accounts from the Windows login screen, you can make changes in the Registry Editor. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList, and create a new DWORD parameter for each user you want to hide. Set the username as the parameter name and its value as 0. This will hide those specific user accounts. To reverse this and show a hidden user on the login screen again, either delete the registry parameter or change its value back to 1.

I hope you found this article useful on how to Hide or Show User Accounts from Login Screen on Windows. Please let me know in the comment section if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:login, Microsoft Windows, User Account, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Fix Mendeley Cite Error has occurred: ECITE40001 (ac1x80sr)
Next Post: Clear Saved Email Address: Stop Microsoft Edge from remembering your email ID

Related Posts

  • taskbar1
    Hide or Remove Search Button from Windows 11 Taskbar Windows
  • Featured image Teams Whiteboard
    How to use Whiteboard in Microsoft Teams meetings Windows
  • Prevent Windows from Saving RDP Connection
    Prevent Windows from Saving RDP Connection History Windows
  • Featured Image new
    Add Registry Keys via DISM in Windows Windows
  • credentialguard
    Enable or disable Windows Defender Credential Guard Security | Vulnerability Scans and Assessment
  • VMware workstation networking issues
    Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network Virtualization

More Related Articles

taskbar1 Hide or Remove Search Button from Windows 11 Taskbar Windows
Featured image Teams Whiteboard How to use Whiteboard in Microsoft Teams meetings Windows
Prevent Windows from Saving RDP Connection Prevent Windows from Saving RDP Connection History Windows
Featured Image new Add Registry Keys via DISM in Windows Windows
credentialguard Enable or disable Windows Defender Credential Guard Security | Vulnerability Scans and Assessment
VMware workstation networking issues Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network Virtualization

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Implementing DHCP Server
    Comprehensive Guide to Install DHCP Server on Windows Server Windows Server
  • delete5
    How to Delete Diagnostic Data in Windows 10 and Windows 11 Windows
  • Featured image
    How to use the voice input instead of typing on Windows Windows
  • Install and report or install or shutdown with BitLocker
    BitLocker Windows Update Shutdown or Reboot option behavior Windows
  • Harica cert request and CSR
    Generate CSR and Request a Certificate from Herica CA Windows
  • unnamed 1
    NSlookup Displays Error: UnKnown Default Server Windows Server
  • Failedcluster
    Failover Cluster Manager failed while managing one or more clusters, the error was unable to determine if the computer exists in the domain Virtualization
  • Free up filesystem root space
    How to fix the Filesystem root is running low on Disk space Virtualization

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,819 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.