How can I work out which user is currently logged into a Windows 7 machine?

From a cmd window run:

echo %USERNAME%

  1. Press the Win+R at the same time
  2. Type cmd and click OK
  3. 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.

enter image description here


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.