Question

Locked

Time Tracking using Windows Server

By jordan ·
Hi,
The company has requested that I setup a script that logs when a user logs into and out of their computer.

The idea is to allow the staff a floating time frame of hours. So they could come in early and leave early or come in late and stay late. What we want is a way to show that the staff are putting in the proper hours.
I know the server records when people log in and out.
so we have created a script to aid us in this.
Here is the script they are .bat

login.bat:
@echo off

set MTH=%DATE:~4,2%
set DAY=%DATE:~7,2%
set YR=%DATE:~10,4%
set HR=%TIME:~0,2%
set HR0=%TIME:~0,1%
if "%HR0%"==" " set HR=0%TIME:~1,1%
set MIN=%TIME:~3,2%
set SEC=%TIME:~6,2%
set MYDATE=%YR%/%MTH%/%DAY% %HR%:%MIN%:%SEC%
echo %MYDATE%

if not exist \\hendrix\NETLOGON\ActivityLogs\%YR%-%MTH%\ mkdir \\hendrix\Shared\Office\ActivityLogs\%YR%-%MTH%\
echo Login,%COMPUTERNAME%,%MYDATE% >> \\hendrix\Shared\Office\ActivityLogs\%YR%-%MTH%\%USERNAME%.csv

LogOut.bat
@echo off

set MTH=%DATE:~4,2%
set DAY=%DATE:~7,2%
set YR=%DATE:~10,4%
set HR=%TIME:~0,2%
set HR0=%TIME:~0,1%
if "%HR0%"==" " set HR=0%TIME:~1,1%
set MIN=%TIME:~3,2%
set SEC=%TIME:~6,2%
set MYDATE=%YR%/%MTH%/%DAY% %HR%:%MIN%:%SEC%
echo %MYDATE%

if not exist \\hendrix\NETLOGON\ActivityLogs\%YR%-%MTH%\ mkdir \\hendrix\Shared\Office\ActivityLogs\%YR%-%MTH%\
echo Logout,%COMPUTERNAME%,%MYDATE% >> \\hendrix\Shared\Office\ActivityLogs\%YR%-%MTH%\%USERNAME%.csv

--------
As you can see we want to create a .csv file that is stored by month then year and if the directory does not exist to create it.
we have the script running in the GPO Scripts Section.

Any advise.
where am I going wrong.
a few logs were created but not all.
as well we would like to know if the user leaves his or her desk (locks the computer)or the mouse does not move for 5 or more minutes, and be able to track that. Like when the computer locks.
The other issue we are having is that even when the script runs the client machines seem to logon every 10 minutes to 1 hour. this is an issue and it causes the data to be skewed.
I know there are programs that can monitor this but we do not want to be a big brother and monitor everything.

does anyone have any solutions for me?
If you need more details please let me know.
Thanks

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

There's an app for that

by robo_dev In reply to Time Tracking using Windo ...

http://www.nestersoft.com/worktime/pc_usage_tracking.shtml

Another way to do this is by collecting Windows event logs from each PC with 'windows Event Collector'

http://msdn.microsoft.com/en-us/library/bb427443%28VS.85%29.aspx

Collapse -

APP/event Collector

by jordan In reply to There's an app for that

Event Collector is super complicated it seems I need to code in c++ which I do not know.
Any simple explanation for setting this up seems like a good solution.

Collapse -

Project Lasso?

by jordan In reply to APP/event Collector

Project Lasso
Have you heard of it?
Is this the Event Collector I am looking for?

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums