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

Get-VBRJobObject

Short Description

Returns objects in a specified job.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Get-VBRJobObject [-Job] <CBackupJob> [-Name <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Related Commands

Get-VBRJob

Detailed Description

This cmdlet returns objects in a specified job. The job objects are VMs, VM containers, datastores or resource pools.

You can run this cmdlet for backup, replication, backup copy, VM copy or file copy jobs.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Job

Specifies the job you want to get the objects of.

True

1

True (ByValue,
ByProperty
Name)

False

Name

Specifies the name of the job object (i.e. a VM) you want to get, or search conditions.

You can specify multiple names separated by commas.

False

Named

False

True

<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 looks for the SharePoint VMs in the job named "VM Copy Job 01". The job is obtained with Get-VBRJob and piped down.

PS C:\PS> Get-VBRJob -Name "VM Copy Job 01" | Get-VBRJobObject -Name *SharePoint*

Example 2

This command looks for the VM named "SharePoint" in the job represented by the $job variable. The job is obtained with Get-VBRJob and assigned to the variable beforehand.

PS C:\PS> Get-VBRJobObject -Job $job -Name "SharePoint"