How do I stop the last logon name being displayed?

A. For security reasons it may be desirable to stop the last logon name logged on being display so to stop perform the following:

  1. Start the registry editor (Regedit.exe)
  2. Move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Double click DontDisplayLastUserName
  4. Set to 1 and click OK
  5. Close the registry editor

This can also be done using the policy editor, and is under the Windows NT System - Logon tree, and tick "do not display last logged on username".

Under Windows 2000 dontdisplaylastusername has been moved to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system.

To assign using a Group Policy Object set under the Computer Configuration - Windows Settings - Security Settings - Local Policies - Security Options - Do not display last user name in logon screen

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.