login log

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi

I just wonder if there is any way that I can monitor users' login
information such as how many times that users login on specific day or when
was the last time that users login or logout.

Thanks
 
What I did a while back was added some lines to a logon script that
ran for all users like this.

echo %date%,%time%>>\\server\byUser$\%username%.log
echo %date%,%time%>>\\server\byMachine$\%computername%.log

I'm not sure why I did that, as I'm not a network admin and the
information meant nothing to me. But I thought it couldn't hurt to
have the data available.

But basically, I created two shares on a server, byUser$ and
byMachine$. If I wanted to view a logon history for a machine, I
could open up the .log file for the computer name in question. And
if I wanted to view logon history by user, I could open up the .log
file for the username in question.

It's a quick and dirty method, but it works.

Ray at work
 
To get around the need to create a share for each user and
for each PC, you could code the batch file like so:

echo %date%, %time%>>\\server\UserStats$\Users\%username%.log
echo %date%, %time%>>\\server\UserStats$\PCs\%computername%.log

Now you need to create just one share, "UserStats$", and two folders
within that share, "Users" and "PCs". It will work for everybody, and
the stats are accessible in a central location.
 
I didn't have a share created for each user and each computer.
Actually, I kinda lied in my post anyway. I actually did only use
one share, but I guess I felt like lying. {:]

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top