Solved

Registry > Find Username and Name of Logged-On User

Posted on 2007-11-28
2
6,352 Views
Last Modified: 2010-06-30
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
Comment
Question by:russelldav
  • 2
2 Comments
 
LVL 32

Accepted Solution

by:
and235100 earned 50 total points
ID: 20369480
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
 
LVL 32

Expert Comment

by:and235100
ID: 20372138
Hope that was helpful.
Thanks.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question