- Help Center
- Technology
- Microsoft
How to retrieve a username in Windows
Quick and easy way to get the username of the user that is currently logged in on a Windows machine
Prerequisites: N/A
Difficulty Level: Member • Nerd • Platypus
Estimated Time: 1 minute
Expected Outcome: You will be able to see the username of the current user
Tools Required: A Windows PC
Steps to Perform
- From the desktop press Windows key + R on the keyboard to bring up the run dialog
- In the dialog type cmd and press Enter to open the command prompt
- From the command prompt type whoami and press Enter
The username is the text after the slash