Normally when a Windows workstation or server is locked, you’ll see something similar to the following Windows Security message:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\DontDisplayLockedUserId
If this policy is enabled, the name of the last user to successfully log on is not displayed in the Log On to Windows dialog box. If this policy is disabled, the name of the last user to log on is displayed.
Carsten Siemens edited Revision 2. Comment: Pirated Content - see my comment
Horizon_Net edited Revision 1. Comment: added language tags
Ed Price - MSFT edited Original. Comment: Title casing and font style
NOTE: This article was reported as Pirated/Plagiarized Content (content you didn't write) and will be removed. Please do not steal content from others. If you feel we are mistaken, please leave a comment or email tnwiki at Microsoft with a link to this article and with clear and detailed reasons why you own the content or have explicit permission from the author.
Content was taken from: "Howto: Do not display the name of the user who has locked a Windows computer or server"
Published by Aseem Kishore on APRIL 24, 2009
thebackroomtech.com/.../howto-do-not-display-the-name-of-the-user-who-has-locked-a-windows-computer-or-server