What's the easiest way to determine the logged on user in Windows XP (without loading any support tools)? I'm looking for something similar to the 'whoami' command but for Windows. I need something that'll display the domain and username.
|
feedback
|
|
Nevermind, I figured it out. Open a command prompt and type: echo %userdomain% echo %username% | |||
|
feedback
|
|
Just type "echo %USERNAME%" into command line. | |||||||||
feedback
|
|
You can combine to get domain and user in one call.
| |||
|
feedback
|
|
This definitely isn't the easiest way to find out, it's probably more for the Jackie Chan fans. Install the following: Windows XP Service Pack 2 Support Tools Then run the following command:
(This command is available in later versions of Windows but you need to install the file above to use it in XP) | |||
|
feedback
|
