Disable-VBRJobSchedule

Short Description

Disables job schedule.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Disable-VBRJobSchedule -Job <CBackupJob[]>  [<CommonParameters>]

Detailed Description

This cmdlet disables job schedule. The schedule settings are not deleted. You can run this cmdlet with backup, replication and copy jobs.

Run the Start-VBRJob cmdlet to start the job once.

Run the Enable-VBRJobSchedule cmdlet to enable job schedule.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Job

Specifies the array of jobs. The cmdlet will disable schedule in these jobs.

Accepts the CBackupJob object. To create this object, run the Get-VBRJob cmdlet.

True

Named

True (ByProperty
Name, ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Disable-VBRJobScheduleExample 1. Disabling Specific Job [Using Pipeline]

This example shows how to disable the Backup Job 01 job.

Get-VBRJob -Name "Backup Job 01" | Disable-VBRJobSchedule

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value.
  2. Pipe the cmdlet output to the Disable-VBRJobSchedule cmdlet.

Disable-VBRJobScheduleExample 2. Disabling Job Represented by Variable

This example shows how to disable the job represented by the $job variable.

$job = Get-VBRJob -Name "Backup Job 01"

Disable-VBRJobSchedule -Job $job

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the Disable-VBRJobSchedule cmdlet. Set the $job variable as the Job parameter value.

Related Commands

Get-VBRJob

Page updated 6/12/2024

Page content applies to build 12.3.0.310