I use the script below to track when my users log off and when they log on.
You can also enable auditing.
 
Step 1: Create the following two files using Notepad or your favorite text
editor: 

------logon.cmd----
echo logon %username% %computername% %date% %time% >>
\\server\share\logon.log <file:///\\server\share\logon.log> 

-----logoff.cmd-----
echo logoff %username% %computername% %date% %time% >>
\\server\share\logon.log <file:///\\server\share\logon.log> 
Step 2: Update Group Policy to run the appropriate batch file. In Group
Policy, go to:
User Configuration-> Windows Settings-> Scripts (Logon/Logoff)-> Logon
Step 3: As users log on and off, your log file should look something like
this:

logon June VSXP Tue 22/02/2005 10:39:51.12
logoff June VSXP Tue 22/02/2005 10:41:08.45
logon MickM VSXP Tue 22/02/2005 10:42:01.07
logoff MickM VSXP Tue 22/02/2005 10:42:46.81
 
 
From: Roger Wright [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 21, 2008 12:31 PM
To: NT System Admin Issues
Subject: Determining Logon Location
 
What's the easiest method to tell which workstation a user is logged in at
any given time?
Roger Wright 
Network Administrator 
Evatone, Inc. 
727.572.7076  x388 
____ 
"All things are difficult before they are easy." 
  
  
 
 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to