How to tell the time a user comes and goes?

By neoklis ·
is there any way in windows 2003 to tell exactly when a user comes and leaves?
or any other software i can buy?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Have your tried a login script?

by StealthWiFi In reply to How to tell the time a us ...

Try this simple login script, should do what you want it to (not the best way but simple):

Create a network share. Set the NTFS permissions to everyone write but not read (there is a bit of a privacy issue with this data). Append a $ to the end of the share name so it can't be browsed for. Lets say the network share UNC is:

Create a batch file. Let's call it log.bat

Edit log.bat and paste in this string all on the same line:
echo %date%,%time%,%computername%,%username%>>\\CriosServer2003\Logs$\log.csv
Save the bat.

Run the bat a few times, then open log.csv. You should see something like:


Now you just have to push the script out to the clients that you want to track and configure it so that it runs at every logon. The easiest way to do this is if you are running Active Directory and your lab machines are in their own OU. If the above is true then you can set a group policy on the OU to run the above logon script. You'll need to put the script somewhere everyone can read it.

If you aren't running active directory then you can just copy the script into the start up group of your lab machines. Or execute the bat from one of the run keys in the registry.

Credit goes to: (

Collapse -

I tried this out..

by kfrost In reply to Have your tried a login s ...

I tried this on my XP machine as a test and nothing was output into my desired area. Here is the script I used.
echo %date%,%time%,%computername%,%username%>>\\C:\logs$\logs.csv
When I run the scritp I see the data in the DOS window but I don't see in anything in my logs folder. I shared the folder as you said. Am I missing something? This script could come in handy.

Collapse -

No C:

by StealthWiFi In reply to I tried this out..

Take out the C: it should be like this if your not putting it on a network share. If you shared the logs$ folder then in the original your posted replace C: with or your IP. ALso run it via cmd prompt to see any errors.

echo %date%,%time%,%computername%,%username%>>C\logs$\logs.csv

Collapse -

Try this Easy time control software, there is a free version to try out.

Sounds pretty good, though it depends if it fits into your work place.

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

Related Discussions

Related Forums