How to hide or show user accounts from login screen on Windows

To hide user accounts from the Windows login screen, enable Interactive logon: Don't display last signed-in in Local Security Policy; to show them again, set that policy back to Disabled.

This guide also covers listing local and connected domain users on a domain-joined PC, taking one account off the sign-in screen, hiding the email address under a tile, and fixing accounts that vanish from the login screen on Windows 11 and Windows 10.

How to hide or show user accounts from login screen on Windows
With default settings, the Windows 11 sign-in screen shows the last signed-in user's name and account photo. (Image: Microsoft)

How to hide user accounts from the Windows 11 login screen

This policy is part of Windows 11 and Windows 10 Pro, Enterprise and Education. It takes effect without a restart.

  1. Sign in with an administrator account.
  2. Press Windows + R, type secpol.msc and press Enter.
  3. Go to Security Settings > Local Policies > Security Options.
  4. Double-click Interactive logon: Don't display last signed-in.
  5. Select Enabled, then select OK.
  6. Press Windows + L to lock the PC; the sign-in screen now asks for a user name and password instead of showing account tiles.
Hide user accounts from Windows login screen with Don't display last signed-in Enabled
Set the policy under Security Settings > Local Policies > Security Options; it takes effect without a restart. (Image: Microsoft Q&A)

Windows login screen settings for hiding and showing accounts

Each goal maps to a different setting. The Logon policies under Administrative Templates mostly matter on domain-joined PCs.

What you want Setting to change Where
Hide every account tile, including the last user Interactive logon: Don't display last signed-in = Enabled Local Security Policy
List local accounts on a domain-joined PC Enumerate local users on domain-joined computers = Enabled Group Policy > System > Logon
Show domain users who are already signed in Do not enumerate connected users on domain-joined computers = Disabled or Not configured Group Policy > System > Logon
Take one account off the sign-in screen Disable or remove that account Command Prompt or Settings
Hide the email address under your tile Show account details on the sign-in screen = Off Settings > Accounts > Sign-in options
Remove the Switch user option Hide entry points for Fast User Switching = Enabled Group Policy > System > Logon

Hide last signed-in username from Windows login screen

When Interactive logon: Don't display last signed-in is enabled, Windows shows neither the full name nor the sign-in tile of the last user, and the same applies after Switch user. Everyone must type an account name and password.

Before Windows 10 version 1703, the same policy was called Interactive logon: Do not display last user name.

  1. On a single PC, open secpol.msc as an administrator.
  2. On a domain, open Group Policy Management, then create or edit a GPO linked to the computers.
  3. Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options (in a GPO, under Policies).
  4. Open Interactive logon: Don't display last signed-in and select Enabled.
  5. Select OK. The change applies without a restart once the policy reaches the PC.

Local accounts then sign in with the plain user name and domain accounts with a qualified name such as DOMAIN\username.

Show all local users on the Windows sign-in screen

On a domain-joined PC, Logon UI does not list local accounts unless Enumerate local users on domain-joined computers is enabled. The policy exists on Windows 10 version 1803 and later.

On a home or workgroup PC, local account tiles disappear when Don't display last signed-in is enabled, so set it to Disabled first.

  1. Press Windows + R, type gpedit.msc and press Enter.
  2. Go to Computer Configuration > Administrative Templates > System > Logon.
  3. Double-click Enumerate local users on domain-joined computers.
  4. Select Enabled, then select OK.
  5. Open secpol.msc and make sure Interactive logon: Don't display last signed-in is Disabled.
  6. Open Command Prompt as administrator, run gpupdate /force, then press Windows + L to check the sign-in screen.

To add another person first, create a local user account and it appears on the list after the change.

Show logged in domain users on Windows logon screen

Domain users who already have a session on the PC are listed by default. The policy Do not enumerate connected users on domain-joined computers turns that off when it is enabled, so set it to Disabled or Not configured to bring them back.

  1. Open Group Policy Management on a domain controller or a PC with the management tools, or gpedit.msc on the PC itself.
  2. Go to Computer Configuration > Policies > Administrative Templates > System > Logon (no Policies folder in the local editor).
  3. Double-click Do not enumerate connected users on domain-joined computers.
  4. Select Disabled, then select OK.
  5. Check that Hide entry points for Fast User Switching in the same folder is not Enabled, because it removes the Switch user interface from the sign-in screen.
  6. Run gpupdate /force on the PC and lock it with Windows + L.

The connected-users policy applies to Windows 10 version 2004 with KB5005101 and later, and to Windows 11.

Hide specific user accounts from the Windows sign-in screen

Windows has no documented setting that hides one enabled account while it stays usable from the sign-in screen. The supported ways to take a single account off the screen are to disable it or to remove it.

A disabled account keeps its files and settings and can be turned back on at any time.

  1. Right-click Start and select Terminal (Admin) or Command Prompt (Admin).
  2. Run net user to list the exact account names on the PC.
  3. Run net user "Account Name" /active:no to disable that account.
  4. Press Windows + L and confirm that the account's tile no longer appears.
  5. To remove the account and its data instead, open Settings > Accounts > Other users, open the account and select Remove next to Account and data.

Before removing anything, view all user accounts on the PC so you do not remove the wrong one, and keep at least one other administrator account enabled.

Hide email address on Windows 11 login screen

Since Windows 10 version 1607, the sign-in screen hides details such as the email address by default and shows only the display name. A per-user toggle and two policies control this.

  1. Open Settings > Accounts > Sign-in options, or run ms-settings:signinoptions.
  2. Under Additional settings, turn off Show account details on the sign-in screen.
  3. To stop users turning it back on, enable Block user from showing account details on sign-in under Computer Configuration > Administrative Templates > System > Logon.
  4. To show only the display name when the PC is locked, set Interactive logon: Display user information when the session is locked to User display name only in Security Options.

The Do not display user information choice in that lock policy is not supported from Windows 10 version 1607, so use Don't display last signed-in to hide names completely.

Hide email address on Windows 11 login screen in Sign-in options settings
Turn off Show account details under Additional settings in Settings > Accounts > Sign-in options to keep only the display name. (Image: Microsoft)

Windows sign-in screen account policies and their defaults

Policy Location What it does Default
Interactive logon: Don't display last signed-in Security Settings > Local Policies > Security Options Hides the last user's name and tile Disabled
Interactive logon: Don't display username at sign-in Security Settings > Local Policies > Security Options Hides the user name after credentials are entered, before the desktop appears Enabled
Interactive logon: Display user information when the session is locked Security Settings > Local Policies > Security Options Chooses display name, domain and user names on the lock screen User display name, domain and user names
Enumerate local users on domain-joined computers Administrative Templates > System > Logon Lists local accounts on a domain PC Not configured (not listed)
Do not enumerate connected users on domain-joined computers Administrative Templates > System > Logon Hides signed-in domain users Not configured (listed)
Hide entry points for Fast User Switching Administrative Templates > System > Logon Removes Switch user from Logon UI, Start and Task Manager; value HideFastUserSwitching in HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System Disabled (visible)

How to show user accounts on the login screen again

  1. Open secpol.msc and set Interactive logon: Don't display last signed-in to Disabled.
  2. In gpedit.msc, under System > Logon, set Do not enumerate connected users on domain-joined computers and Hide entry points for Fast User Switching to Not configured.
  3. Re-enable a hidden account with net user "Account Name" /active:yes from an administrator Command Prompt.
  4. Run gpupdate /force and press Windows + L to see the account tiles again.

If a domain GPO sets these policies, the local change is overwritten at the next refresh, so change the GPO instead.

How to see which accounts appear on the Windows sign-in screen

  1. Press Windows + L to lock the PC.
  2. Select Switch user if it is shown; the account tiles appear in the lower-left corner.
  3. If you only see a box for a user name and password, Don't display last signed-in is enabled.
  4. If an account you expect is missing, open Settings > Accounts > Other users to check that it still exists on the PC.
Windows sign-in screen showing only Other user with user name and password boxes
Seeing only these boxes after Windows + L means Interactive logon: Don't display last signed-in is enabled. (Image: Microsoft Q&A)

User accounts not showing on Windows 11 login screen

Only an Other user tile or a blank user name box appears

Interactive logon: Don't display last signed-in is enabled locally or by a GPO.

  1. Open secpol.msc and set the policy to Disabled.
  2. On a work PC, ask IT, because a domain GPO overrides the local setting.
  3. Lock the PC with Windows + L to check.

Local accounts are missing on a domain-joined PC

Logon UI does not list local users on domain PCs unless Enumerate local users on domain-joined computers is enabled.

  1. Enable the policy under Administrative Templates > System > Logon.
  2. Run gpupdate /force.
  3. Lock the PC with Windows + L and check that the local account tiles now appear.

One account disappeared from the sign-in screen

The account is disabled or was removed.

  1. Sign in with another administrator account and run net user to see whether the account still exists.
  2. If it exists, run net user "Account Name" /active:yes.
  3. If it was removed, add the user account again from Settings > Accounts > Other users; its old files stay under C:\Users only if the profile was not deleted.

Reset password does not appear on the sign-in screen

Microsoft Entra self-service password reset on Windows does not work when DontDisplayLastUserName or HideFastUserSwitching is set to 1, or when lock screen notifications are off.

  1. Set Interactive logon: Don't display last signed-in to Disabled.
  2. Set Hide entry points for Fast User Switching to Not configured.
  3. Lock the PC and check for the Reset password link.

Windows login screen user accounts FAQ

How do I stop Windows from showing the last user on the login screen?

Enable Interactive logon: Don't display last signed-in under Security Settings > Local Policies > Security Options in secpol.msc. Windows then hides the last user's name and tile, and everyone types a user name and password to sign in.

Why does my Windows 11 login screen show only one user?

On a domain-joined PC, local accounts are not listed unless Enumerate local users on domain-joined computers is enabled. On any PC, a disabled account or the Don't display last signed-in policy also removes tiles from the sign-in screen.

Can I hide one user account but still sign in with it?

Windows has no documented setting for that. Disabling the account with net user /active:no removes it from the sign-in screen but also blocks sign-in until you run net user /active:yes. Don't display last signed-in hides every tile while keeping all accounts usable.

How do I hide my email address on the Windows sign-in screen?

Open Settings > Accounts > Sign-in options and turn off Show account details on the sign-in screen under Additional settings. Administrators can enforce this with the Block user from showing account details on sign-in policy.

Does Windows 11 Home have Local Security Policy?

The Interactive logon and Logon policies in this guide apply to Pro, Enterprise and Education editions. On Home, you can still take an account off the sign-in screen by disabling it with net user or removing it in Settings.

Do I need to restart after changing Don't display last signed-in?

No. Microsoft states that changes to this policy take effect without a restart when they are saved locally or distributed through Group Policy. Lock the PC with Windows + L to see the result.

Does hiding the last signed-in user affect password reset?

Yes. Microsoft Entra self-service password reset on Windows does not work when DontDisplayLastUserName is set to 1. If your organization uses the Reset password link on the sign-in screen, leave Don't display last signed-in disabled.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

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