Set-VBRWindowsWorkstationScheduleOptions
Short Description
Modifies the schedule of the backup policy for Windows workstations.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus
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. To modify settings, enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
|
Use the Set-VBRServerScheduleOptions cmdlet to modify the schedule settings for the following types of jobs:
|
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Options | Specifies the daily schedule settings for Windows workstations. The cmdlet will modify the existing daily schedule settings. Accepts the VBRWindowsWorkstationSchedule | 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 type. | 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.
| False | Named | False |
|
PostBackupAction | Specifies the action that Veeam Agent for Microsoft Windows will perform after the backup job completes successfully.
| False | Named | False |
|
EnableDailySchedule | Enables daily schedule. Veeam Agent backup job will start at the time specified in the DailyOptions parameter. | False | Named | False |
|
BackupAtLock | Indicates that the Veeam Agent backup job will start when the user locks the protected computer. | False | Named | False |
|
BackupAtLogOff | Indicates that the Veeam Agent backup job will start when the user working with the protected computer performs a logout operation. | 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. | False | Named | False |
|
BackupTimeoutType | Specifies an interval between the backup job sessions.
| False | Named | False |
|
BackupAtTargetConnection | Indicates that the Veeam Agent backup job will start when the backup storage becomes available. | False | Named | False |
|
EjectStorageAfterBackup | For the BackupAtTargetConnection parameter. Indicates that Veeam Agent for Microsoft Windows will unmount the storage device after the backup job completes successfully. | False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Return Type
Example
This example shows how to modify a schedule for a Veeam Agent job that backs up Windows workstations.
- Run Get-VBRJob to get the backup job that you want to modify. Save the result to the $job variable.
- Cast the $job variable to the VBRComputerBackupJob type. Use the [Veeam.Backup.PowerShell.Infos.VBRComputerBackupJob]$ComputerBackupJob value.
- Get the ScheduleOptions object. Save the result to the $schedule variable.
- Cast the $schedule variable to the WindowsWorkstationScheduleOptions type. Use the [Veeam.Backup.PowerShell.Infos.VBRWindowsWorkstationScheduleOptions]$WindowsWorkstationScheduleOptions value. Save the result to the $schedule variable.
- Run New-VBRDailyOptions to specify the daily schedule. Save the result to the $daily variable.
- Run Set-VBRWindowsWorkstationScheduleOptions with the $daily and $schedule variables.
$job = Get-VBRJob -name "Windows_W_Job" [Veeam.Backup.PowerShell.Infos.VBRComputerBackupJob]$ComputerBackupJob = $job $schedule = $computerbackupjob.ScheduleOptions [Veeam.Backup.PowerShell.Infos.VBRWindowsWorkstationScheduleOptions]$WindowsWorkstationScheduleOptions =$schedule $daily = New-VBRDailyOptions -DayOfWeek Wednesday -Period 20:00 Set-VBRWindowsWorkstationScheduleOptions -Options $schedule -DailyOptions $daily |
Related Commands