Trying to track logon/logoff times /dates
- From: "Audioman17" <Audioman17@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 3 May 2005 19:45:18 -0700
We have Windows 2000 DCs in AD (2 domain controllers) and about 5 member
servers (it probably does not really matter in this case).
We need to record users logon/logoff times. For that purpose we are using
logon and logoff scripts for the AD domain in the Group Policy which look
like this:
==========================================
echo off
date /t >> \\domain_controller\logs$\%username%.log
time /T >> \\domain_controller\logs$\%username%.log
echo The user %username% on %computername% logged in >>
\\domain_controller\logs$\%username%.log
echo. >> \\domain_controller\logs$\%username%.log
==========================================
-this is the logon script and similar one is used for log off (with
different word).
The log$ share is already created on the "domain_controller" computer (this
is actually a DC) and there is separate log file for each user.
And it does work (mostly...).
The problem is that log files sometimes very intermittently got overwritten.
It could stay for a week or two and then just start from empty file the user
log on again. And it happens for one user today, and for two other users next
week etc.
Any ideas why?
Thanks, everybody, in advance.
.
- Prev by Date: Prevent users from deleting icons from desktop
- Next by Date: Group Policy Logon/Logoff script problems.
- Previous by thread: Prevent users from deleting icons from desktop
- Next by thread: Group Policy Logon/Logoff script problems.
- Index(es):
Relevant Pages
|