Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6371
  • 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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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