Registry Home > Windows > Login and Authentication

Hide the Last User Name (All Windows) Popular

This setting can be used to blank the username box on the logon screen. This will prevent people that are logging on from knowing the last user to access the system.

This tweak can be easily applied using WinGuides Tweak Manager.
Download a free trial now!

Open your registry and find the key for your Windows version below.

Windows 98 or Me
Open [HKEY_LOCAL_MACHINE\Network\Logon] and create new string value called "DontShowLastUser" and set it to "1" to hide the last user.

Windows 2000 or XP
Open [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] and create a new string value, or modify the existing value, called "DontDisplayLastUserName" and set it to "1" to enable or "0" to disable the restriction.

Windows NT
Open [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] and create a new string value, or modify the existing value, called "DontDisplayLastUserName" and set it to "1" to enable or "0" to disable the restriction.

Restart Windows for the change to take effect.

Registry Editor Example
|NameTypeData|
|(Default)REG_SZ(value not set)|
|DontDisplayLastUserNameREG_DWORD"1" [Windows 2K, XP]|
|DontShowLastUserREG_SZ"1" [Windows 98, Me]|
-
|HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion...|
-
Registry Settings
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
System]
Value Name: DontDisplayLastUserName
Data Type: REG_SZ (String Value)
Value Data: (1 = remove username, 0 = display username)

Related Tweaks

>> Recommended Download - check, repair and optimize your registry now with Registry Mechanic <<

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Last modified: October 24, 2002