How to determine logged on user in Windows XP?
Nevermind, I figured it out. Open a command prompt and type the following:
echo %userdomain%
echo %username%
Just type the following into command line:
echo %USERNAME%
You can combine to get domain and user in one call.
echo %userdomain% %username%