Solved

identify the work station host name using the users logon name

Posted on 2014-07-23
3
294 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

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

863 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

25 Experts available now in Live!

Get 1:1 Help Now