Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6381
  • Last Modified:

Registry > Find Username and Name of Logged-On User

I'm trying to find a registry key that tells me the username and name of the user currently logged onto the computer (WInXP).
0
russelldav
Asked:
russelldav
  • 2
1 Solution
 
and235100Commented:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Hostname

Name of computer

As to logged in user - not sure about an exact registry location- but you can find this with wmi: (i.e. vbscript)
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jan07/hey0123.mspx

The best way would be a vbscript to get both lots of info:
http://www.tek-tips.com/viewthread.cfm?qid=1259771&page=1

0
 
and235100Commented:
Hope that was helpful.
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now