How to determine logged on user in Windows XP?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Riding Sky Waves v001
--
Chapters
00:00 How To Determine Logged On User In Windows Xp?
00:17 Accepted Answer Score 24
00:29 Answer 2 Score 13
00:38 Answer 3 Score 10
00:48 Answer 4 Score 7
01:13 Answer 5 Score 3
01:36 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)
ANSWER 5
Score 3
If you go to a command prompt and type set
, you get a wealth of information. If note is the homepath variable. In an older machine that may or may not have had the profiles remapped, it tells you the current path in use.
There is also a lot of other information, including username and domain.
These are all system variables that can be individually "Echoed" as suggested above.