How to Change Last Logged on User at Windows 7 Login Screen in Registry

Printer-friendly versionPDF version
Change last logged in user on windows 7 login screen

After logging onto a Windows 7 computer, your username will be displayed on the login screen after a restart or logoff, like this:

Change last logged in user on windows 7 login screen

Whether working remotely or locally, you may not want the next person to login to the computer to know you were logged into it. The 2 main reasons are:

  1. Security - The user may not want you in their computer and they would question you if they knew you were in it.
  2. Login Trouble - Many users do not know how to switch user accounts on Windows 7, and they may spend 30 minutes trying to login before they call you for help!

To change the last logged in user at the Windows 7 login screen, simply edit the following registry entry and restart the computer:

HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\LastLoggedOnUser

For a domain account, make sure to put it in this format: DOMAIN\username

Really great tip, thanks a lot!
One question: do you think it will work also on Windows 8?
Thanks
Adriano

I believe so, but I haven't tested this yet. I'll post back here when I do

this does not work on windows 8.1

Windows 8.1 will amend this field the moment a logoff or restart is invoked.

Probably in recovery, can we lock in this registry edit.

Actually Kevin, it does. You have to also edit the "LastLoggedOnSAMUser" field.

Thank you very much,

it worked like a charm, just re-start your computer after making necessary changes in registry.

It does work in Windows 8.1 but you have to modify the LastLoggedOnUser and LastLoggedOnSAMUser

To make things pretty, you should also alter "LastLoggedOnDisplayName"

Worked immediately and does not require a reboot if performed on a logged out computer (processed from your own laptop remotely.)

Post new comment