Task Scheduler Question - Auto Restart


  1. Posts : 3
    Windows 7 Ultimate x64
       #1

    Task Scheduler Question - Auto Restart


    Hello everyone,

    I would like to set up a public computer to automatically restart after an hour of use through Windows Task Scheduler. Any help on this matter would be greatly appreciated.

    Thanks!
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Does the computer automatically log on to a user limited account?
    (e.g. not an admin account)

    You might be interested in this post/thread.
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #3

    You can try these settings:

    Task Scheduler Question - Auto Restart-1-restart-create.png


    Task Scheduler Question - Auto Restart-2-restart-general.png


    Since this type of restart can be canceled via...
    shutdown -a
    ...it might be best to select a duration of Indefinitely.
    The default setting of 1 day might be just as practical;
    as I doubt that anyone would cancel the restart 24 times.
    But if they did, the task would not try a 25th time...
    ...if a setting of 1 day is used; hence, my picking Indefinitely.
    Task Scheduler Question - Auto Restart-3-restart-trigger.png


    It does not matter if the switches are upper case letters:
    /R /F /T 120
    You can select a time longer than two minutes
    Task Scheduler Question - Auto Restart-4-restart-action.png


    Task Scheduler Question - Auto Restart-5-restart-conditions.png


    For this task's setting...
    "Stop the task if it runs longer than: (1 hour)"
    ...the terms "task" and "it" refer to the app named shutdown.
    The task is not stopping or inactivating itself. In other words:
    the task will still run the shutdown app again in an hour.
    Task Scheduler Question - Auto Restart-6-restart-settings.png

    If you stick with the 1 hour interval as the trigger, then it really does not matter what value you set that highlighted setting to in the screen shown above. You could even deselect it. The /F switch on the shutdown should force the closure/ending of any previously hung app.
    Last edited by UsernameIssues; 16 Oct 2014 at 03:45.
      My Computer


  4. Posts : 3
    Windows 7 Ultimate x64
    Thread Starter
       #4

    Hello UsernameIssues!

    Thank you very much! It got me where I needed to be after a few modifications. I do IT work for a local library and several of their computers needed a 1 hour shutdown timer. Also, thank you for the links to ToolWize. I am currently using Drive Vaccine to revert the Patron's computers.

    Warm regards,
    Johnny5896
      My Computer


  5. Posts : 10,485
    W7 Pro SP1 64bit
       #5

    I'm glad that is worked for you...
    ...with a few modifications

    I could not tell your level of computer knowledge from your original post...
    ...so I went a bit overboard on illustrating where to click
      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 22:01.
Find Us