Click to See Complete Forum and Search --> : Collecting the user information during network logon


levik
11-25-2002, 07:40 AM
Hi,

I want to write a script that will run on the Domain Controller. The script will run during a login of a user to the network from his local workstation.
I want to get the Username and the name of the workstation where this user logged on.

How do I retrieve these details ?

Thanks.

Tom
11-26-2002, 10:18 AM
I suppose WSH (Windows Scripting Host) is the apropirate solution for you.
With basic VBS commands you can retrieve these values.

Username = %username%
Computername = %host%

These vars return the desired info.

Hope it helps...

------------
levik at 11/25/2002 8:40:10 AM

Hi,

I want to write a script that will run on the Domain Controller. The script will run during a login of a user to the network from his local workstation.
I want to get the Username and the name of the workstation where this user logged on.

How do I retrieve these details ?

Thanks.