Re: Record User Logon/Logoff with Computer Name + Username
- From: "super pippo" <superpippo1@xxxxxxxxx>
- Date: 20 Feb 2006 12:03:12 -0800
What I do is to collect the information I need at logon and logoff time
using the script below.
This scripts writes to the client's event viewer.
You can rather easily modify it to write to a text file in a network
location or even a sql database.
Set sho = CreateObject("Wscript.Shell")
set sysi = createobject("ADSystemInfo")
strUser=sysi.UserName
strComputer = sysi.ComputerName
set objUser=GetObject("LDAP://" & strUser)
sho.LogEvent 4,"User " & objUser.samaccountName & " has logged on at "
& now & " from " & ComputerName
Hope this helps.
.
- References:
- Re: Record User Logon/Logoff with Computer Name + Username
- From: YAKETYAK
- Re: Record User Logon/Logoff with Computer Name + Username
- From: mem0ri
- Re: Record User Logon/Logoff with Computer Name + Username
- Prev by Date: Re: Record User Logon/Logoff with Computer Name + Username
- Next by Date: RE: Integrate XP Windows firewall in a W2k domain
- Previous by thread: Re: Record User Logon/Logoff with Computer Name + Username
- Next by thread: Re: Record User Logon/Logoff with Computer Name + Username
- Index(es):
Relevant Pages
|