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

Set-VBRJobScheduleOptions

In this article

    Short Description

    Applies customized job scheduling settings to a selected backup, replication or copy job.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    Set-VBRJobScheduleOptions [-Job] <CBackupJob[]> [-Options] <ScheduleOptions> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    Get-VBRJob

    New-VBRJobScheduleOptions

    Detailed Description

    This cmdlet applies customized scheduling options to a selected backup, replication or copy job.

    To customize the scheduling options you need to first run the New-VBRJobScheduleOptions cmdlet. New-VBRJobScheduleOptions returns the ScheduleOptions object containing the set of default scheduling options.

    Run Set-VSBJobScheduleOptions to set scheduling options to SureBackup job.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Job

    Specifies the job for which you want to change the scheduling options.

    You can assign multiple jobs to this object.

    True

    1

    True (ByValue,
    ByProperty
    Name)

    False

    Options

    Specifies the custom scheduling options.

    Accepts the ScheduleOptions object.

    True

    2

    False

    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 applies the customized scheduling options to the jobs named "DC Backup" and "DC File Copy". The jobs are obtained with Get-VBRJob and piped down. The options to apply are set to the $"Schedule Options" variable beforehand by running New-VBRJobScheduleOptions.

    PS C:\PS> Get-VBRJob -Name "DC Backup", "DC File Copy" | Set-VBRJobScheduleOptions -Options $"Schedule Options"

    Example 2

    This command applies the customized scheduling options to the job represented by the $job variable. The job is obtained with Get-VBRJob and assigned to the variable beforehand. The options to apply are set to the $"Schedule Options" variable beforehand by running New-VBRJobScheduleOptions.

    PS C:\PS> Set-VBRJobScheduleOptions -Job $job -Options $"Schedule Options"