Link to home
Start Free TrialLog in
Avatar of urobins
urobins

asked on

is there a way to find out what PC a user is using.

Is it possible to find out what computer a user is logging onto via server 2003 and xp?

I have a user (large organization) and Im not sure of the PC they are logging into but I need to stop them from doing something... is there a way to track this down?
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_3654191
How about running a little small script each time a user logs on?

Here is the code:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objWshNetwork = WScript.CreateObject("WScript.Network")
strComputerName = objWshNetwork.ComputerName
strUserName = objWshNetwork.Username

Set objTextFile = objFSO.CreateTextFile("C:\" & strComputerName & "_" & strUsername & ".txt", True)


The script will create file in C:\ with the Computername and the Username of the user who just logged on. Just replace C:\ with a share like \\server\share1. Take the code and save it in a textfile with vbs-Extension, e. g. loggedon.vbs. Run the file via group policy. Put it in the user section. You will always know who logged on to which machine.

Furthermore you can restrict users to log on to specific workstations only. Go into AD properties of the user. Select the account tab and click on the Log on to button. Specify the desired workstations
Avatar of urobins
urobins

ASKER

Shift that worked perfectly thanks!