...
Code Block | ||
---|---|---|
| ||
C:\PS> Get-TaskJobSchedulerTask | Stop-TaskJobSchedulerTask |
- The
Get-TaskJobSchedulerTask
cmdlet retrieves all running tasks. - The list of tasks is piped to the
Stop-TaskJobSchedulerTask
cmdlet. - Depending on the system load the killing of tasks might take some seconds. Repeatedly executing the
Get-Task
cmdlet should prove that no further tasks are running.
...
Code Block | ||
---|---|---|
| ||
C:\PS> Get-JobJobSchedulerJob /some_folder/some_subfolder | Get-TaskJobSchedulerTask | Stop-TaskJobSchedulerTask |
- The
Get-JobJobSchedulerJob
cmdlet retrieves jobs starting from the specified directory. Any subfolders of that directory are included unless the-NoSubfolders
parameter is specified. - The
Get-TaskJobSchedulerTask
cmdlet retrieves all running tasks for the list of jobs. - The list of tasks is piped to the
Stop-TaskJobSchedulerTask
cmdlet.
Kill tasks for any jobs of a job chain
Code Block | ||
---|---|---|
| ||
C:\PS> Get-JobChainJobSchedulerJobChain -JobChain /some_folder/some_job_chain | Get-JobJobSchedulerJob | Get-TaskJobSchedulerTask | Stop-TaskJobSchedulerTask |
- The
Get-JobChainJobSchedulerJobChain
cmdlet retrieves the specified job chain. - The
Get-JobJobSchedulerJob
cmdlet retrieves jobs for the resulting job chain(s). - The
Get-TaskJobSchedulerTask
cmdlet retrieves all running tasks for the list of jobs. - The list of tasks is piped to the
Stop-TaskJobSchedulerTask
cmdlet.
See also
- The
Stop-Task
cmdlet supports a number of actions to kill (sending SIGKILL) and to terminate (sending SIGTERM) signals to processes, For details see How to Terminate Tasks.
...