How to determine logged on user in Windows XP?
--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping
--
Chapters
00:00 Question
00:31 Accepted answer (Score 24)
00:46 Answer 2 (Score 13)
00:59 Answer 3 (Score 10)
01:13 Answer 4 (Score 7)
01:42 Thank you
--
Full question
https://superuser.com/questions/54974/ho...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #windowsxp #useraccounts #user
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping
--
Chapters
00:00 Question
00:31 Accepted answer (Score 24)
00:46 Answer 2 (Score 13)
00:59 Answer 3 (Score 10)
01:13 Answer 4 (Score 7)
01:42 Thank you
--
Full question
https://superuser.com/questions/54974/ho...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #windowsxp #useraccounts #user
#avk47
ACCEPTED ANSWER
Score 24
Nevermind, I figured it out. Open a command prompt and type the following:
echo %userdomain%
echo %username%
ANSWER 2
Score 13
Just type the following into command line:
echo %USERNAME%
ANSWER 3
Score 10
You can combine to get domain and user in one call.
echo %userdomain% %username%
ANSWER 4
Score 7
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:
whoami
(This command is available in later versions of Windows but you need to install the file above to use it in XP)