Stop a task in Windows 2008 Task Scheduler if it runs longer than 15 minutes

task-schedulerwindows-server-2008-r2

In the Settings tab of a Task in Task Scheduler Windows 2008 and Win8 you can specify additional settings that affect the behavior of your task.

The setting for "Stop the task if it runs longer than:" only allows as low as 1 hour but is there any other way to specify in minutes effectively terminating my job if it runs long than 15 minutes?

Thanks.

Best Answer

enter image description hereYou can specify a duration in minutes from the command line using "schtasks /create". The /DU option allows for HH:mm So you should be able to set it for 15 minutes if needed.