Set-VBRWindowsWorkstationScheduleOptions
Short Description
Modifies the schedule of the backup policy for Windows workstations.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Set-VBRWindowsWorkstationScheduleOptions -Options <VBRWindowsWorkstationScheduleOptions> [-EnableDailySchedule] [-DailyOptions <VBRDailyOptions>] [-PowerOffAction <VBRPowerOffAction> {SkipBackup | BackupAtPowerOn}] [-PostBackupAction <VBRPostBackupAction> {Sleep | Hibernate | Shutdown | KeepRunning}] [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection] [-EjectStorageAfterBackup] [-BackupTimeout <int>] [-BackupTimeoutType <VBRAgentBackupTimeoutType> {Minute | Hour | Day}] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule settings for the backup policy that Veeam Agent job applies to Windows workstations.
Important |
Use the Set-VBRServerScheduleOptions cmdlet to modify the schedule settings for the following types of jobs:
|
Note |
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Options | Specifies the daily schedule settings for Windows workstations. The cmdlet will modify the existing daily schedule settings. | Accepts the VBRWindowsWorkstationScheduleOptions object. To get this object, run the New-VBRWindowsWorkstationScheduleOptions cmdlet. | True | Named | True (ByValue) |
DailyOptions | For daily schedule. Specifies daily schedule settings. The cmdlet will create the Veeam Agent backup job with these settings. | Accepts the VBRDailyOptions object. To get this object, run the New-VBRDailyOptions cmdlet. | False | Named | False |
PowerOffAction | Specifies the action that Veeam Agent for Microsoft Windows must perform when the protected computer is powered off at a time when the scheduled backup job must start.
| VBRPowerOffAction | False | Named | False |
PostBackupAction | Specifies the action that Veeam Agent for Microsoft Windows will perform after the backup job completes successfully.
| VBRPostBackupAction | False | Named | False |
EnableDailySchedule | Enables daily schedule. Veeam Agent backup job will start at the time specified in the DailyOptions parameter. | SwitchParameter | False | Named | False |
BackupAtLock | Defines that the Veeam Agent backup job will start when the user locks the protected computer. | SwitchParameter | False | Named | False |
BackupAtLogOff | Defines that the Veeam Agent backup job will start when the user working with the protected computer performs a logout operation. | SwitchParameter | False | Named | False |
BackupTimeout | Specifies the number of Veeam Agent backup job sessions. Use this option to restrict the frequency of the backup job sessions. Use the BackupTimeoutType parameter to set the job interval. Note: this option does not work for daily schedule. | Int | False | Named | False |
BackupTimeoutType | Specifies an interval between the backup job sessions.
| VBRAgentBackupTimeoutType | False | Named | False |
BackupAtTargetConnection | Defines that the Veeam Agent backup job will start when the backup storage becomes available. | SwitchParameter | False | Named | False |
EjectStorageAfterBackup | For the BackupAtTargetConnection parameter. Defines that Veeam Agent for Microsoft Windows will unmount the storage device after the backup job completes successfully. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRWindowsWorkstationScheduleOptions object that contains the schedule for the backup policy for Windows workstations.
Examples
Modifying Schedule for Veeam Agent Job for Windows Workstations
This example shows how to modify a schedule for a Veeam Agent job that backs up Windows workstations.
$job = Get-VBRComputerBackupJob -Name "Windows_W_Job" $options = New-VBRWindowsWorkstationScheduleOptions -BackupAtLock -BackupTimeout 5 -BackupTimeoutType Hour $daily = New-VBRDailyOptions -DayOfWeek Wednesday -Period 20:00 Set-VBRWindowsWorkstationScheduleOptions -Options $options -DailyOptions $daily |
Perform the following steps:
- Run the Get-VBRComputerBackupJob cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the New-VBRWindowsWorkstationScheduleOptions cmdlet. Provide the BackupAtLock parameter. Specify the BackupTimeout and BackupTimeoutType parameter values. Save the result to the $options variable.
- Run the New-VBRDailyOptions cmdlet. Specify the DayOfWeek and Period parameter values. Save the result to the $daily variable.
- Run the Set-VBRWindowsWorkstationScheduleOptions cmdlet. Set the $options variable as the Options parameter value. Set the $daily variable as the DailyOptions parameter value.
Related Commands