Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: log off at specific times

09 Jun 2011   #1

W7 Ultimate
 
 
log off at specific times

Hey all.

I'm looking for a way to make the computers at the local library here log off at closing time. Unfortunately the library hours are not on a standard schedule. So I need to make the computers log off at 4:50 PM Tuesday - Thursday, and at 1:20 PM on Friday and Saturday. I've tried using the task scheduler but I must be screwing something up as it isn't working the way i want.

Anyone have ideas how I can do this? Preferably without downloading any software but if i have to I can.

Oh and 5 of the computers have Windows 7 Pro 64 bit and 2 have Windows 7 Ultimate 32 bit.

My System SpecsSystem Spec
.

10 Jun 2011   #2

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

You might want to use Time limits in Parental controls if these accounts are Standard Accounts if they are Guest accounts then it will not work

If you want you can create a Standard account with No password and prevent it from creating the password

See the following

Parental Controls - Set Time Limits

And

Password - Prevent or Allow to Change - Vista Forums

Note   Note
Method 1 on the first Tutorial works for Editions of Windows 7 Pro, Enterprise and ultimate editions only - However Method 2 works for all versions of Vista and Windows 7
My System SpecsSystem Spec
11 Jun 2011   #3

W7 Ultimate
 
 

parental controls will not work as the times the computers need to be turned off are not right on the hour. I think I found out what I was doing wrong with the task scheduler. I had them successfully go into forced hibernate with a task today. However the system that was running an install program using the password from the admin account didn't go into hibernate. I'm guessing the admin account rights to install that program were over-riding the hibernate task.
My System SpecsSystem Spec
.


11 Jun 2011   #4

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

Yes that is true but if you use the "standard" Admin then it would Hibernate

Josh
My System SpecsSystem Spec
11 Jun 2011   #5
Microsoft MVP

W 7 64-bit Ultimate
 
 

Quote   Quote: Originally Posted by kormath View Post
parental controls will not work as the times the computers need to be turned off are not right on the hour. I think I found out what I was doing wrong with the task scheduler. I had them successfully go into forced hibernate with a task today. However the system that was running an install program using the password from the admin account didn't go into hibernate. I'm guessing the admin account rights to install that program were over-riding the hibernate task.

Hello.

Unless this is what you meant by 'forced' try adding the /f (force) switch under 'arguments' to see if that will sort it for you and be sure to post back with any further questions you may have and to keep us informed.

click to enlarge
Name:  f_switch.jpg
Views: 17
Size:  91.9 KB



My System SpecsSystem Spec
12 Jun 2011   #6

W7 Ultimate
 
 

Quote   Quote: Originally Posted by Bare Foot Kid View Post
Quote   Quote: Originally Posted by kormath View Post
parental controls will not work as the times the computers need to be turned off are not right on the hour. I think I found out what I was doing wrong with the task scheduler. I had them successfully go into forced hibernate with a task today. However the system that was running an install program using the password from the admin account didn't go into hibernate. I'm guessing the admin account rights to install that program were over-riding the hibernate task.

Hello.

Unless this is what you meant by 'forced' try adding the /f (force) switch under 'arguments' to see if that will sort it for you and be sure to post back with any further questions you may have and to keep us informed.

click to enlarge
Attachment 159149

Yes the -f argument is the force i was talking about.

The computers are set up with 2 user accounts. The first is called Exec and its set up as the admin account we do all the installations etc. with. The 2nd is just a standard user account called Patrons. All the library visitors use the Patrons account to do their email, etc. Some of the customer like to abuse the librarian and refuse to log off the computer at closing time making them stay sometimes up to 45 minutes late while they dink around online. So what we wanted was a task or some way to shut down the computers before closing time to kick those nuisance customers off so the librarians can go home on time.

What I did was create a weekly task for tuesday wednesday and thursday to have the computer hibernate at 4:55 pm. I used the shutdown.exe file from the windows directory and used the -f -h arguments for force close and hibernate.

I also created a message task to give a popup message 5 minutes prior to hibernation warning the user the computer is going to shutdown in 5 minutes.

So far that has worked fine. I'm not sure what ShadowJK meant by a standard admin account, but I think the reason the 3 computers that failed to hibernate (out of the 6) were because I was on the patron account and had given it rights by entering the Exec account (admin) password to install adobe reader. I think that over-rode the task for hibernation even though I had set it to run at the highest priority.

I'll call them tomorrow and see if they went to hibernate properly as scheduled today. Hopefully they did.

The only other problem I have is trying to get the warning popup task message to appear on top of other windows. It is popping up on the task bar but behind the active window. It does flash though on the task bar so people have been opening it to see what it is. I guess that will work but I'd like it on top of all windows so it's plainly visible.
My System SpecsSystem Spec
12 Jun 2011   #7
Microsoft MVP

W 7 64-bit Ultimate
 
 

Unless you have to have them hibernate instead of shutdown, have a look at this one.


Task Scheduler : Create Shut Down PC Automatically Task
My System SpecsSystem Spec
Reply

 log off at specific times




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:38 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33