log off at specific times


  1. Posts : 30
    W7 Ultimate
       #1

    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 W7 Pro 64 bit and 2 have W7 Ultimate 32 bit.
      My Computer


  2. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #2

    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
    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 Computer


  3. Posts : 30
    W7 Ultimate
    Thread Starter
       #3

    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 Computer


  4. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #4

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

    Josh
      My Computer


  5. Posts : 22,814
    W 7 64-bit Ultimate
       #5

    kormath said:
    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
    log off at specific times-f_switch.jpg
      My Computer


  6. Posts : 30
    W7 Ultimate
    Thread Starter
       #6

    Bare Foot Kid said:
    kormath said:
    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
    log off at specific times-f_switch.jpg
    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 Computer


  7. Posts : 22,814
    W 7 64-bit Ultimate
       #7

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 21:06.
Find Us