Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Add-VBRJobObject (obsolete)

Short Description

Adds VMs to existing job.

Add-VBRJobObject (obsolete) Note:

In Backup & Replication v6 this cmdlet was replaced by Add-VBRViJobObject and Add-VBRHvJobObject due to multihypervisor support introduced in the new version. The cmdlet will still work but it is advised to rewrite your scripts using new cmdlets for added benefits.

Applies to

Platform: VMware

Syntax

Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Objects] <String[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

-OR-

Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Entities] <CEntity[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

This cmdlet allows you to add VMs or VM containers to existing backup, replication or copy job.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Job

Specifies the job you want to add VMs to.

True

1

False

False

Server

Specifies the host where the VMs or VM containers you want to add reside.

True

2

False

False

Objects

Specifies the string with the name(s) of VM(s) you want to add to the job.

You can assign multiple VMs to this object.

True

3

True (ByValue,
ByProperty
Name)

False

Entities

Specifies the VM(s) or VM container(s) you want to add to the job.

You can assign multiple VMs to this object.

True

3

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 adds a VM named "vm3" to a job represented by $job variable. The VM is located on the server represented by the $server variable. The job object and the server object are obtained with Get-VBRJob and Get-VBRServer and assigned to the variables accordingly beforehand.

PS C:\PS> Add-VBRJobObject –Job $job –Server $server –Objects vm3

Example 2

This command adds a VM named "vm3" to the job represented by the $job variable. The VM is obtained with Find-VBRViEntity and piped down. The VM is located on the server represented by the $server variable. The job object and the server object are obtained with Get-VBRJob and Get-VBRServer and assigned to the variables accordingly beforehand.

PS C:\PS> Find-VBRViEntity -Name "vm3" | Add-VBRJobObject -Job $job -Server $server

Related Commands

Get-VBRJob

Get-VBRServer

Find-VBRViEntity

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Endpoint Backup Documentation

Veeam Management Pack Documentation