[Samba] Audit Trail/Logging For Network Logons and Logoffs
lars.rasmussen at gmail.com
Wed Mar 2 20:12:35 GMT 2005
On Wed, 02 Mar 2005 12:48:42 -0500, Van Sickler, Jim
<vansickj-eodc at kaman.com> wrote:
> Are you just looking for logon/logoff times? I think you can put something
> in the logon/logoff scripts that will do that.
> Logon tracking:
> @echo off
> echo %USERNAME% Logon >> \\server\hiddenshare\%USERNAME%.log & date /t >>
> \\server\hiddenshare\%USERNAME%.log & time /t >>
I played with this a bit & like the following implementation better:
SET logoninfo=%USERNAME% logged on %DATE% %TIME:~0,8%
echo %logoninfo% >> \\server\hiddenshare\%USERNAME%.log
It's a bit more ''log like''.
jdoe logged on Wed 03/02/2005 13:03:47
Oh yeah, I also learned that ECHO.
(no space) makes a hard return in windows batch files.
More information about the samba