Skip to content

Conversation

@dhmsgit
Copy link

@dhmsgit dhmsgit commented Mar 16, 2017

No description provided.

@msftclas
Copy link

@dhmsgit,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@brianlic-msft brianlic-msft merged commit 09bfe27 into MicrosoftDocs:master Mar 16, 2017
sukihanabi added a commit to sukihanabi/windows-powershell-docs that referenced this pull request Apr 19, 2019
Step Taken: 
- Added MicrosoftDocs#6 example to -ExecutionTimeLimit 
-ExecutionTimeLimit (New-TimeSpan -Hours 1) same as ExecutionTimeLimit =  'PT1H'
it specify that if the task is not finished after 1 hour, it is considered as failed, it need to finish the task after 1 hour.

-Also added that "Without the ExecutionTimeLimit setting defined the time limit set to it's default of 3 days for the Task Scheduler is allowed to complete the task."
-added article for time limit parameter https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/new-timespan?view=powershell-6

References;
https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

The -ExecutionTimeLimit parameter is for New-ScheduledTaskSettingsSet command.
https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

Trigger task scheduler Job from powershell
https://stackoverflow.com/questions/44491658/trigger-task-scheduler-job-from-powershell?rq=1
velkovb pushed a commit to velkovb/windows-powershell-docs that referenced this pull request May 28, 2019
Step Taken: 
- Added MicrosoftDocs#6 example to -ExecutionTimeLimit 
-ExecutionTimeLimit (New-TimeSpan -Hours 1) same as ExecutionTimeLimit =  'PT1H'
it specify that if the task is not finished after 1 hour, it is considered as failed, it need to finish the task after 1 hour.

-Also added that "Without the ExecutionTimeLimit setting defined the time limit set to it's default of 3 days for the Task Scheduler is allowed to complete the task."
-added article for time limit parameter https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/new-timespan?view=powershell-6

References;
https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

The -ExecutionTimeLimit parameter is for New-ScheduledTaskSettingsSet command.
https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

https://social.technet.microsoft.com/Forums/en-US/26be656a-ce4f-4566-a994-0e0c2edabac8/windows-task-scheduler-time-limit-set-to-unlimited?forum=winserver8gen

Trigger task scheduler Job from powershell
https://stackoverflow.com/questions/44491658/trigger-task-scheduler-job-from-powershell?rq=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants