Share via


Windows Task Scheduler - Time Limit set to unlimited

Question

Thursday, October 19, 2017 4:20 AM

I'm running Windows 2012R2.

I've created a job in Task Scheduler.

The job seems to have a time limit set to a maximum of 3 days even when I've not set in Task Scheduler's job Triggers, the parameter "Stop task if it runs longer than:" has not been set

To confirm this I've run this command in Powershell:

Get-ScheduledTask mytask|select -expand settings| select executiontimelimit
P3D

P3D means 3 days.

I want to run my job with NO time limit.

How do I run my task scheduler job with no time limit?

All replies (5)

Thursday, October 19, 2017 8:49 AM

Hi,

Based on test in my lab, I suggest you uncheck “Stop task if it runs longer than” in Settings tab not Triggers to see if it helps.

Best Regards,

Tobias Fang 


Thursday, October 19, 2017 10:05 PM

Thanks.

Please see below my example.

Can you please explain?

=================================================================

PS C:\Windows\system32> Get-ScheduledTask Solr_index |select -expand settings| select executiontimelimit

executiontimelimit

P3D


Monday, October 23, 2017 2:36 AM

Hi,

Based on your screenshot, you still unchecked “Stop task if it runs longer than” in Triggers tab not in Settings tab. I suggest you uncheck “Stop task if it runs longer than” in Settings tab to see if it helps.

Best Regards,

Tobias Fang


Tuesday, October 24, 2017 9:28 AM

Hi,

Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

Best Regards,

Tobias Fang


Monday, October 30, 2017 6:21 AM

Hi,

BTW, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks for your understanding and efforts.

Best Regards,

Tobias Fang