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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Shift that worked perfectly thanks!
Here is the code:
Set objFSO = CreateObject("Scripting.Fi
Set objWshNetwork = WScript.CreateObject("WScr
strComputerName = objWshNetwork.ComputerName
strUserName = objWshNetwork.Username
Set objTextFile = objFSO.CreateTextFile("C:\
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