In this post, I am going to show you how to find who is using your computer and for how much time. I can find at least three reasons why this can be very useful:
- You want to control the usage of your computer; maybe your children spend too much time in front of it—even when you are not home.
- You are running a server, with this I mean a computer that cannot be shutdown, and you want to know if it’s up and running.
- You want to control your own usage—sometimes is very useful to have statistic about this.
Some might say that using Parental Controls is easy to block the access to a computer at some hours, but we are not trying to block anything.
If you have read in some of my previous posts you have noticed that for many tasks you have the programs installed by default with your Operating Systems. This post is written for Windows 7 and I am going to use Task Scheduler to achieve the goal.
Launch Task Scheduler
Press WinKey, and search for Task Scheduler.
![Windows 7 Launch Task Scheduler Windows 7 Launch Task Scheduler Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Launch-Task-Scheduler.png?resize=411%2C484)
Click Task Scheduler.
Create The Tak
Click Task Scheduler Library.
![Windows 7 Task Scheduler Library Windows 7 Task Scheduler Library Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i2.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Task-Scheduler-Library.png?resize=287%2C219)
On the right pane select Create Task and select the General tab.
![Windows 7 Create Task UpTime General Windows 7 Create Task UpTime General Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Create-Task-UpTime-General.png?resize=646%2C486)
If you are using it on a server check Run whether user is logged or not.
On Triggers tab, click New:
![Windows 7 Create Task UpTime Triggers Windows 7 Create Task UpTime Triggers Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Create-Task-UpTime-Triggers.png?resize=646%2C486)
Select On a schedule:
![Windows 7 Create Task Begin The Task On a Schedule Windows 7 Create Task Begin The Task On a Schedule Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i1.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Create-Task-Begin-The-Task-On-a-Schedule.png?resize=605%2C522)
Selecting daily, and repeating the task every 5 minutes for 1 day makes the application run forever (which is what we want.)
Now we have to specify the action we want to start:
![Windows 7 Create Task Action Start a program Ok Windows 7 Create Task Action Start a program Ok Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i0.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Create-Task-Action-Start-a-program-Ok.png?resize=468%2C506)
The program is a command prompt, we can launch the program using cmd. As arguments we type:
/c echo %username%,%time%,%date% >> UpTime.csv
In start in we select the path what we want that the task store the information in our case:
c:\windows\
Now we only have to open to see the information:
![Windows 7 notepad windows uptime Windows 7 notepad windows uptime Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i0.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-notepad-windows-uptime.png?resize=413%2C212)
And see the result:
![Windows 7 Uptime csv Windows 7 Uptime csv Find out Who Is Using Your Computer and When In Windows 7 [How To]](http://i2.wp.com/mintywhite.com/wp-content/uploads/2010/09/Windows-7-Uptime-csv.png?resize=300%2C312)
The name of our user is User (sorry for the simplicity.) Even though the task is very useful, it has one drawback, have you noticed it? More importantly, do you know how to improve that?
About Angel Luis
I am an Engineer of Telecommunications that love computers. My first computer was a Commodore 16kb, about 25 years ago and since then I am always fighting computers problems. Please visit my entries and ask me about whatever problem you have, I will be pleased to help you. My email is discoveryourpc [at] gmail [dot] com. You can follow me on twitter @agenlu or read my blog www.discoveryourpc.net
Search Windows Guides