How can I work out which user is currently logged into a Windows 7 machine?
From a cmd
window run:
echo %USERNAME%
- Press the Win+R at the same time
- Type
cmd
and click OK - Type
whoami
then press Enter
This will return the fully qualified user name.
Open task manager and go to Users tab , it will display which login is being used currently.
Run (WinKey+R) > cmd /c "echo %username% & pause"
Fastest, easiest way to do it.
EDIT:
Changed run command. Was ECHO %USERNAME%| PAUSE
. Did not work due to echo
being an internal command of cmd.exe
.