Solved

identify the work station host name using the users logon name

Posted on 2014-07-23
3
289 Views
Last Modified: 2014-07-26
Hi, if i get the users logon name can i run a command that will display the computer name that the user is logged onto? We are on w 2008 AD domain

Thanks
0
Comment
Question by:Jason Thomas
3 Comments
 
LVL 19

Assisted Solution

by:helpfinder
helpfinder earned 250 total points
ID: 40213787
0
 
LVL 4

Accepted Solution

by:
Kevin Stanush earned 250 total points
ID: 40214454
There really isn't a good way to do this in Windows / Active Directory.

PsLoggedOn scans the remote computer's registry and shows you WHAT/WHO is logged on.  I think you have to give it the computer's name, so if you don't know that, you have to feed it a list of computers.  But scanning the registry for a large block of computers is rather intense.

The PS script is even more extreme, in that it grabs all computers, then runs a WMI query against them looking for (I think) the user associated with the explorer process.  WMI may not work for every computer and it may be really slow if you have a large number of computers.

Try these techniques, I just wanted to let you know what they do so you understand how they work and perhaps why they may not.

If you have to do this task a lot, and your users are presumably in Active Directory, see if you are running logon scripts and such, and what can be done is to append to a text file with each user's logon the date, time, computername, etc. and then you can easily search that.
0
 
LVL 1

Author Closing Comment

by:Jason Thomas
ID: 40221983
Thanks both
0

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

760 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

21 Experts available now in Live!

Get 1:1 Help Now