Name

Start-JobSchedulerJob

SYNOPSIS

Starts a number of jobs in the JobScheduler Master.

SYNTAX

Start-JobSchedulerJob [-Job] <String> [[-Directory] <String>] [[-Parameters] <Hashtable>] [[-At] <String>] [<CommonParameters>]

DESCRIPTION

This cmdlet is an alias for Update-JobSchedulerJob -Action "start"

PARAMETERS

Job

-Job <String>
Specifies the full path and name of a job.

Required?true
Position?1
Default value
Accept pipeline input?true (ByValue, ByPropertyName)
Accept wildcard characters?false

Directory

-Directory <String>
Optionally specifies the directory of a job should the -Job parameter
not be provided with the full path and name of the job.

Required?false
Position?2
Default value/
Accept pipeline input?true (ByValue, ByPropertyName)
Accept wildcard characters?false

Parameters

-Parameters <Hashtable>
Specifies the parameters for the job. Parameters are created from a hashmap,
i.e. a list of names and values.

Required?false
Position?3
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

At

-At <String>
Specifies the point in time when the job should start:

* now
** specifies that the job should start immediately
* now+1800
** specifies that the job should start with a delay of 1800 seconds, i.e. 30 minutes later.
* yyyy-mm-dd HH:MM[:SS]
** specifies that the job should start at the specified point in time.

Default: now

Required?false
Position?4
Default valuenow
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

about_jobscheduler

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS > Start-JobSchedulerJob -Job /sos/dailyschedule/CheckDaysSchedule

Starts an individual job.

-------------------------- EXAMPLE 2 --------------------------

PS > Get-JobSchedulerJob -Directory /some_dir -NoSubfolders | Start-JobSchedulerJob

Starts all jobs from the specified directory without consideration of subfolders.

  • No labels