Logging User logon event.
If you want to keep track the user logon and logoff event to the domain, you can try this method:
Step 1: Create the following two files using Notepad or your favorite text editor:
------logon.cmd----
echo logon %username% %computername% %date% %time% >> \\dc1\share\logon.log
-----logoff.cmd-----
echo logoff %username% %computername% %date% %time% >> \\dc1\share\logoff.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
User Configuration-> Windows Settings-> Scripts (Logon/Logoff)-> Logoff
Step 3: As users log on and off, your log file should look something like this:
logon Richard WS01 Tue 22/02/2005 10:39:51.12
logon Peter WS02 Tue 22/02/2005 10:42:01.07
logoff Richard WS01 Tue 22/02/2005 10:41:08.45
logoff Peter WS02 Tue 22/02/2005 10:42:46.81
For paid solution and better reporting, you can use the software from:
http://manageengine.adventnet.com/products/desktop-central/