How to Change Last Logged on User at Windows 7 Login Screen in Registry
Submitted by ingram on Tue, 06/04/2013 - 6:47pm



After logging onto a Windows 7 computer, your username will be displayed on the login screen after a restart or logoff, like this:
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:
- Security - The user may not want you in their computer and they would question you if they knew you were in it.
- 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
Bookmark/Search this post with
- Add new comment
- 8 comments
Like this article?? Check out these:
User login
Popular content
Today's:
All time:
Last viewed:
Did you find this tutorial useful?
To assist with the bills and the author's time, please consider making a donation. Any amount helps:
Top Categories
Linux
Command Line
ubuntu
windows
Terminal
Windows 7
Exchange 2010
Exchange
Open Source
hosted exchange
hacking
Bible
Christain
SSH
Multi-Tenant
HP
WINE
Server 2008 R2
Switch
Password Recovery
Active Directory
Internet Explorer
nmap
One-Liner
Lync
Citrix
Games
Citrix Receiver
DNS
OpenPanel
Server
ping
Pure-FTPd
Script
RAID
robocopy
server 2008
SonicWall
profile migration
Windows 8
VPN
VM
tweak
Unity
PsExec
ESX
Outlook
BSOD
Awk
ASCII
Control Panel
iis
Exchange 2010 SP1
iptables
IE9
Fail2ban
IE ESC
7
2012
2008
Really great tip, thanks a
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
I believe so, but I haven't tested this yet. I'll post back here when I do
this does not work on windows
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
Actually Kevin, it does. You have to also edit the "LastLoggedOnSAMUser" field.
Thank you very much,
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
It does work in Windows 8.1 but you have to modify the LastLoggedOnUser and LastLoggedOnSAMUser
To make things pretty, you
To make things pretty, you should also alter "LastLoggedOnDisplayName"
Worked immediately and does
Worked immediately and does not require a reboot if performed on a logged out computer (processed from your own laptop remotely.)
Post new comment