how to configure “stop the task if it runs longer than” for schtasks.exe
0
I want to set the value for the option "Stop task if runs longer than" in the windows schedule task Trigger tab using Powershell. Already tried with /DU switch but it is not working. Below is the screenshot for the same. let me know in case of any further information is required. @TobyU: I tried your suggestion as well but it is not setting up the required value. Below is the screenshot for your reference. Thank you in advance.
powershell scheduler windowstaskschedule
share | improve this question
edited Nov 12 at 13:34
...