NAME
Update-JobSchedulerJob
SYNOPSIS
Updates a number of jobs in the JobScheduler Master.
SYNTAX
Update-JobSchedulerJob -Job <String> -Action <String> <CommonParameters>
DESCRIPTION
Updating jobs includes operations to stop and unstop jobs.
Jobs to be stopped are selected
- by a pipelined object, e.g. the output of the Get-Job cmdlet
- by specifying an individual job with the -Job parameter.
PARAMETERS
Job
-Job <String>
Specifies the path and name of a job that should be updated.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
Action
-Action <String>
Specifies the action to be applied to stop a task:
- Action "stop"
- jobs are stopped immediately. Any running tasks are continued to completion.
- a stopped job does not execute any tasks. Orders in a job chain wait for stopped jobs to be resumed.
- Action "unstop"
- unstops a previously stopped job.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
RELATED LINKS
about_jobscheduler
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
C:\PS>Update-Job -Job /sos/dailyschedule/CheckDaysSchedule -Action stop
Stops an individual job.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>Get-Job | Update-Job -Action unstop
Unstops all jobs that have previously been stopped.
-------------------------- EXAMPLE 3 --------------------------
C:\PS>Get-Job -Directory /some_dir -NoSubfolders | Update-Job -Action stop
Stops all jobs from the specified directory
without consideration of subfolders.