Posted on November 2, 2017 · Posted in Windows 10

How to Show All Users Accounts on Windows 10 Login Screen

In Windows 10 / 8.1 the logon screen by default displays the account of the last user logged in (If the user password is not set, this user will be automatically logged on, even if autologon is not enabled.) However, it is possible to display all user accounts on the login screen in Windows 10.

To make Windows 10 / 8.1 display all accounts, change the value of Enabled key to 1 in the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch. You can do it either in RegEdit, Reg Add command or Set-ItemProperty PowerShell cmdlet:
Reg Add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch /v Enabled /t REG_DWORD /d 1 /f
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch' -Name Enabled -Value 1

UserSwitch enabled 1

However, the system automatically resets the value of the Enabled parameter to 0 at each logon. In order to always change the value to 1, it’s easier to create a new task in the Task Scheduler that will run at user logon.

The Scheduler task must run one of the commands shown above. You can create this task manually using taskschd.msc graphic console. But it seems to me that it is much easier to create a Scheduler task using PowerShell. In our case, the commands to create a new task may be as follows:

$Trigger= New-ScheduledTaskTrigger -AtLogOn
$User= "NT AUTHORITY\SYSTEM"
$Action= New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch -Name Enabled -Value 1"
Register-ScheduledTask -TaskName "UserSwitch_Enable" -Trigger $Trigger -User $User -Action $Action -RunLevel Highest –Force

Register-ScheduledTask UserSwitch_Enable

Make sure that the task appeared in Windows Task Scheduler (taskschd.msc).

new scheduler task

Log off and then log on again. The task must start automatically and change the value of Enabled registry parameter to 1. Check the current value of the parameter. As you can see, it is 1:

get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch' -Name Enabled

Get-ItemProperty

After the next restart, all user accounts will be displayed on Windows 10 or 8 logon screen instead of the last one.

Tip. Instead of the standard user icons, you can configure the user profile photo from Active Directory to be displayed.

show all users on Windows 10 login screen

Tip. If the task is successfully triggered, but the list of users is not displayed, make sure if Interactive Logon: Do not display last username policy (see Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options) is disabled.

If you want all user accounts to be displayed on all domain computers, it’s better to distribute the Scheduler task using Group Policy Preferences (you can see an example of how to create a similar task in the article How to Configure a Screensaver Using GPO).

Previous:
Next:
Related Articles