Set-VBRJobVssOptions

Short Description

Applies custom VSS settings to a selected job.

Platform: VMware, Hyper-V

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

Syntax

This cmdlet provides the following parameter sets:

  • Manual (Default)

    Set-VBRJobVssOptions [-Job] <CBackupJob[]> [-Options] <CGuestProcessingOptions> [<CommonParameters>]

  • Credentials

    Set-VBRJobVssOptions [-Job] <CBackupJob[]> -Credentials <CCredentials> [<CommonParameters>]

Detailed Description

This cmdlet applies a set of customized VSS settings to a selected job.

To apply the set of customized settings you need to first create a CVssOptions object. This object unifies all the VSS options you want to apply to the job.

Run the New-VBRJobVssOptionsReturns default set of VSS options for job or VM in job. cmdlet to create the CVssOptions object.

Run the Set-VBRJobObjectVssOptionsCustomizes job VSS settings. cmdlet to apply VSS settings to specific VMs in job.

Note

To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameters values with new values. The parameters that you omit will remain unchanged.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Credentials

Specifies the credentials you want to use for authenticating with the guest VM.

Accepts the CCredentials object. To get this object, run the Get-VBRCredentialsReturns credentials records. cmdlet.

CCredentials

True

Named

False

Job

Specifies the job you want to edit.

Accepts the CObjectInJob[] object. To get this object, run the Get-VBRJobObjectReturns VMs or VM containers of specific jobs. cmdlet.

CBackupJob[]

True

0

True (ByPropertyName, ByValue)

Options

Specifies the set of parameters you want to apply to the job.

Accepts the CGuestProcessingOptions object. To get this object, run the New-VBRJobVssOptionsReturns default set of VSS options for job or VM in job. cmdlet.

CGuestProcessingOptions

True

1

False

<CommonParameters>

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

Examples

Set-VBRJobVssOptionsExample 1. Applying Custom VSS Options to Backup Job [Using Pipeline]

This example shows how to apply custom VSS options to the backup job named Backup Job 01.

$options = New-VBRJobVssOptions -ForJob

Get-VBRJob -Name "Backup Job 01" | Set-VBRJobVssOptions -Options $options

Perform the following steps:

  1. Run the New-VBRJobVssOptionsReturns default set of VSS options for job or VM in job. cmdlet. Provide the ForJob parameter. Save the result to the $options variable.
  2. Run the Get-VBRJobReturns existing jobs. cmdlet. Specify the Name parameter value.
  3. Pipe the cmdlet output to the Set-VBRJobVssOptions cmdlet. Set the $options variable as the Options parameter value.

Set-VBRJobVssOptionsExample 2. Applying Custom VSS Options to Job [Using Variable]

This example shows how to apply custom VSS options to the job represented by the $job variable.

$job = Get-VBRJob

$options = New-VBRJobVssOptions

Set-VBRJobVssOptions -Job $job -Options $options

Perform the following steps:

  1. Run the Get-VBRJobReturns existing jobs. cmdlet. Save the result to the $job variable.
  2. Run the New-VBRJobVssOptionsReturns default set of VSS options for job or VM in job. cmdlet. Save the result to the $options variable.
  3. Run the Set-VBRJobVssOptions cmdlet. Set the $job variable as the Job parameter value. Set the $options variable as the Options parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18