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: Task Scheduler Question - Auto Restart

15 Oct 2014   #1

Windows 7 Ultimate x64
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.


My System SpecsSystem Spec
16 Oct 2014   #2

W7 Pro SP1 64bit

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 System SpecsSystem Spec
16 Oct 2014   #3

W7 Pro SP1 64bit

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

My System SpecsSystem Spec

16 Oct 2014   #4

Windows 7 Ultimate x64

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,
My System SpecsSystem Spec
16 Oct 2014   #5

W7 Pro SP1 64bit

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... I went a bit overboard on illustrating where to click
My System SpecsSystem Spec

 Task Scheduler Question - Auto Restart

Thread Tools

Similar help and support threads
Thread Forum
simple task scheduler question: changing a task name
Hello, I scheduled some tasks in the task scheduler. One of the tasks has a typo and another I would like to change its name. There doesn't seem to be a way of doing this short of resetting up the tasks from scratch and deleting the original tasks. Would anyone know how to rename tasks in the...
Performance & Maintenance
Using Task Scheduler to restart a program upon wake from sleep
I'm using Logitech's latest LGS for my G700. It's very annoying that I have to exit and restart LGS when my system comes out of sleep or LGS doesn't recognize the mouse as being awake (windows drives it then). This happens when the mouse is running wirelessly. It also happens across versions. Is...
General Discussion
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
General Discussion
Task Scheduler Question
Is there any way to schedule a task to load a program once a particular program is loaded? And if possible, have that program close once the other program is closed? Like, I want program B to run only if I open program A. Then when I close program A, program B closes also.
General Discussion

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 05:41.
Twitter Facebook Google+