title: how to configure "stop the task if it runs longer than" for schtasks.exe
body: <p>I want to set the value for the option "Stop task if runs longer than" in the windows schedule task Trigger tab using Powershell.</p>
  
  <p>Already tried with /DU switch but it is not working.</p>
  
  <p>Below is the screenshot for the same.
  <a href="https://i.stack.imgur.com/b3g7m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b3g7m.png" alt="Windows Task Schedule Trigger Settings"></a></p>
  
  <p>let me know in case of any further information is required.</p>
  
  <p>@TobyU: I tried your suggestion as well but it is not setting up the required value. Below is the screenshot for your reference.
  <a href="https://i.stack.imgur.com/y5Yae.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y5Yae.png" alt="enter image description here"></a></p>
  
  <p>Thank you in advance.</p>