Skip to end of metadata
Go to start of metadata

NAME

Start-JobSchedulerJob

SYNOPSIS

Starts a number of jobs in the JobScheduler Master.

SYNTAX

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

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?

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?

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?

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:MMSS
    • specifies that the job should start at the specified point in time.

Default: now

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

about_jobscheduler

EXAMPLES

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

C:\PS>Start-JobSchedulerJob -Job /sos/dailyschedule/CheckDaysSchedule

Starts an individual job.

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

C:\PS>Get-JobSchedulerJob -Directory /some_dir -NoSubfolders | Start-JobSchedulerJob

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

  • No labels
Write a comment…