Set-VBRWindowsWorkstationScheduleOptions
Short Description
Modifies the schedule of the backup policy for Windows workstations.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRWindowsWorkstationScheduleOptions -Options <VBRWindowsWorkstationScheduleOptions> [-EnableDailySchedule] [-DailyOptions <VBRDailyOptions>] [-PowerOffAction <VBRPowerOffAction>] [-PostBackupAction <VBRPostBackupAction>] [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection] [-EjectStorageAfterBackup] [-BackupTimeout <Int32>] [-BackupTimeoutType <VBRAgentBackupTimeoutType>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule settings for the backup policy that Veeam Agent job applies to Windows workstations.
Important |
|
Use the
|
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 |
|---|---|---|---|---|---|
|
BackupAtLock |
Defines that the Veeam Agent backup job will start when the user locks the protected computer. |
|
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. |
|
False |
Named |
False |
|
BackupAtTargetConnection |
Defines that the Veeam Agent backup job will start when the backup storage becomes available. |
|
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 Note: this option does not work for daily schedule. |
|
False |
Named |
False |
|
BackupTimeoutType |
Specifies an interval between the backup job sessions.
|
|
False |
Named |
False |
|
DailyOptions |
For daily schedule. Specifies daily schedule settings. The cmdlet will create the Veeam Agent backup job with these settings.
Accepts the |
False |
Named |
False |
|
|
EjectStorageAfterBackup |
For the Defines that Veeam Agent for Microsoft Windows will unmount the storage device 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 |
|
False |
Named |
False |
|
Options |
Specifies the daily schedule settings for Windows workstations. The cmdlet will modify the existing daily schedule settings.
Accepts the |
|
True |
Named |
True (ByValue) |
|
PostBackupAction |
Specifies the action that Veeam Agent for Microsoft Windows will perform after the backup job completes successfully.
|
|
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 |
<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-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
New-VBRWindowsWorkstationScheduleOptionsCreates the schedule for the backup policy for Windows workstations. cmdlet. Provide theBackupAtLockparameter. Specify theBackupTimeoutandBackupTimeoutTypeparameter values. Save the result to the$optionsvariable. - Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekandPeriodparameter values. Save the result to the$dailyvariable. - Run the
Set-VBRWindowsWorkstationScheduleOptionscmdlet. Set the$optionsvariable as theOptionsparameter value. Set the$dailyvariable as theDailyOptionsparameter value.
Related Commands
New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRWindowsWorkstationScheduleOptionsCreates the schedule for the backup policy for Windows workstations.Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.