How to hide user name from welcome screen

If you wish to enhance your PC’s security you may want to hide all user names from the login screen. In this case it will be necessary to enter both the user name and the password to log into the user account. 

Default look of welcome screen

Normally when you boot your PC you can see either all user accounts…

all user accounts on welcome screen

…or the last used account with a password request:

last accessed user account in Windows 10

So the logins (user names) are obviously known.

Hide logins of all users from logon screen

1. Launch the registry editor.

2. Find the key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system

3. Find the DWORD-value named dontdisplaylastusername (or create DWORD-32 value if missing).

4. Set it to 1:

Turn off user name display in registry

5. Log off or restart the PC.

The welcome screen should look like this in Windows 7:

username request in windows 7

and like this in Windows 8.1 or 10:

other user: username request

Other user instead of username