Tracking Computer Time

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
Is there a way in Windows 7 to track when a computer is turned on and off? A log for the week would be great but I want to see each weekday when the computer is turned on and when it is turned off? Any help would be appreciated.

Thanks
 
Joined
Jul 29, 2001
Messages
21,334
How about a logged on and logged off script that puts the output to a text file?
 

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
That would be great but I am not computer savy so I don't know how to do that? Is it difficult?
 
Joined
Jul 29, 2001
Messages
21,334
Is it a standalone computer or a computer on a company network? I am assuming a standalone computer.
 

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
We actually have 5 computers on a small network that we would like to track the logged on/off time. Ultimately we would like to have each person print out a log for the week that shows the times that their computer was turned on and off each day of the week. Would that be possible?
 
Joined
Jul 29, 2001
Messages
21,334
If you are trying to use this as a time tracking application there are far better ways to accomplish this.
 

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
What my manager has asked me to do is to figure out how we can tell when an employee turns on his/her computer and turns it off. Some of the employees say they come in early and leave later but we do not have a clock so we thought this was a good way to see when they come in and actually start/stop working and is less intrusive.
 

Squashman

Retired Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
What if they don't log off?
Just because they log off of their computer doesn't mean they aren't doing more work. I do plenty of my job on a computer all day but I also have plenty of verification stuff that is done just sitting at my desk.
I think you are playing with fire if you want to use this as way to verify if your employees are working or not.
 

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
I agree with you and pointed this out but he still wants to proceed this way at first. Since we are going to require printing this log or information each week and submitting with timesheet he is hoping just the fact that they know someone is watching might make a few select sit up and take notice.

So I was just hoping someone might be able to help me figure out an easy way to get this info off each computer for now.

Thanks
 

valis

Moderator
Joined
Sep 24, 2004
Messages
78,191
you can find the system boot time about a half dozen ways from the command prompt (for remote machines as well) but without checking event logs, it's going to be difficult to get the system off time.

I remember one guy I knew created an excel macro for a stand-alone rig, assigned everyone an ID and had it log when that ID was entered in whatever cell he told them to.....sort of low tech, but it was similar to your situation.
 
Joined
Jul 29, 2001
Messages
21,334
You can create a batch file for logon and logoff events and write them to a text file. Create a directory where you want to store the text file under the C drive. Create two batch files below.

Login.bat
echo LOG IN %username% COMPUTER: %computername% DATE: %date% TIME: %time% >> C:\foldername\loggedin.txt

Logout.bat
echo LOG OUT %username% COMPUTER: %computername% DATE: %date% TIME: %time% >> C:\foldername\loggedin.txt

If you are not on a domain use GPEDIT and add the batch filed to the logon/logoff in the user configuration area.
 
Joined
Jul 29, 2001
Messages
21,334
And they want to be able to print them out in some sort of report.
 

UBAGirl

Thread Starter
Joined
Feb 8, 2007
Messages
79
Wow thanks. Looks so easy but I am just not so computer savy. When I create the bat file do I do this in notepad and save the file with the name Login.bat? And do I copy all of this

Login.bat
echo LOG IN %username% COMPUTER: %computername% DATE: %date% TIME: %time% >> C:\foldername\loggedin.txt

in the file?

And I am not sure where I type the GPEDIT?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top