Partilhar via


ScheduledJobDefinition.StartJob Method

Definition

Overloads

StartJob()

Starts the scheduled job immediately. A ScheduledJob object is returned that represents the running command, and this returned job is also added to the local job repository. Job results are not written to the job store.

StartJob(String)

Starts a scheduled job based on definition name and returns the running job object. Returned job is also added to the local job repository. Job results are not written to store.

StartJob()

Starts the scheduled job immediately. A ScheduledJob object is returned that represents the running command, and this returned job is also added to the local job repository. Job results are not written to the job store.

public Microsoft.PowerShell.ScheduledJob.ScheduledJob StartJob ();
member this.StartJob : unit -> Microsoft.PowerShell.ScheduledJob.ScheduledJob
Public Function StartJob () As ScheduledJob

Returns

ScheduledJob object for running job

Applies to

StartJob(String)

Starts a scheduled job based on definition name and returns the running job object. Returned job is also added to the local job repository. Job results are not written to store.

public static System.Management.Automation.Job2 StartJob (string DefinitionName);
static member StartJob : string -> System.Management.Automation.Job2
Public Shared Function StartJob (DefinitionName As String) As Job2

Parameters

DefinitionName
String

ScheduledJobDefinition name.

Returns

Applies to