Solved

Registry > Find Username and Name of Logged-On User

Posted on 2007-11-28
2
6,347 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now