This is an archive version of the document. To get the most up-to-date information, see the current version.

Enable-VBRJob

Short Description

Enables a disabled job.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Enable-VBRJob -Job <CBackupJob[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] a[<CommonParameters>]

Related Commands

Get-VBRJob

Detailed Description

This cmdlet enables a disabled job. When you disable a job, you put it on hold until you enable it with this cmdlet. You can disable a job by running Disable-VBRJob.

You can run this cmdlet with backup, replication and copy jobs.

Run Start-VBRJob to start a job once.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Job

Specifies the job you want to enable.

You can assign multiple jobs to this object.

True

Named

True (ByValue,
ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This command enables the jobs named "Backup Job 01" and "Backup Job 02". The backup jobs are obtained with Get-VBRJob and piped down.

PS C:\PS> Get-VBRJob -Name "Backup Job 01", "Backup Job 02" | Enable-VBRJob

Example 2

This command enables the job represented by the $job variable. The job object is obtained with Get-VBRJob and assigned to the variable beforehand.

PS C:\PS> Enable-VBRJob -Job $job