Help Center
Choose product document...
Veeam Backup & Replication 9.5 Update 4
PowerShell Reference

New-VBRWindowsWorkstationScheduleOptions

Short Description

Creates the schedule for the backup policy for Windows workstations.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

This cmdlet provides the following parameter sets:

  • To specify a schedule for both periodical backups and backups at a particular event.

New-VBRWindowsWorkstationScheduleOptions -DailyOptions <VBRDailyOptions> -PowerOffAction <VBRPowerOffAction> {SkipBackup | BackupAtPowerOn} -PostBackupAction <VBRPostBackupAction> {Sleep | Hibernate | Shutdown |KeepRunning} [-EnableDailySchedule] [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection]
[-EjectStorageAfterBackup] [-BackupTimeout <int>] [-BackupTimeoutType <VBRAgentBackupTimeoutType> {Minute | Hour | Day}]  [<CommonParameters>]

  • To specify a schedule for backups at a particular event.

New-VBRWindowsWorkstationScheduleOptions [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection][-EjectStorageAfterBackup] [-BackupTimeout <int>]
[-BackupTimeoutType <VBRAgentBackupTimeoutType> {Minute | Hour | Day}]  [<CommonParameters>]

Detailed Description-

The cmdlet creates the VBRWindowsWorkstationScheduleOptions object. This object contains schedule settings for the backup policy that Veeam Agent job applies to Windows workstations.

New-VBRWindowsWorkstationScheduleOptions Note:

Use the New-VBRServerScheduleOptions cmdlet to create the schedule settings for the following types of jobs:

  • For the backup policy that Veeam Agent job applies to a Windows server.
  • For Veeam Agent jobs that back up Windows servers.
  • For Veeam Agent jobs that back up failover clusters.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

DailyOptions

For periodical backups.

Specifies daily schedule settings. The cmdlet will create the server schedule with these settings.

Accepts the VBRDailyOptions type.

True

Named

True (ByValue)

 

PowerOffAction

For periodical backups.

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.

  • SkipBackup: select this option if you do not want Veeam Agent for Microsoft Windows to start the scheduled backup job when the computer is powered on. Veeam Agent for Microsoft Windows will perform backup at the next scheduled time.
  • BackupAtPowerOn: select this option if you want Veeam Agent for Microsoft Windows to start the scheduled backup job when the protected computer is powered on.

True

Named

False

 

PostBackupAction

For periodical backups.

Specifies the action that Veeam Agent for Microsoft Windows will perform after the backup job completes successfully.

  • Sleep: select this option if you want Veeam Agent for Microsoft Windows to bring the protected computer to the standby mode.
  • Hibernate: select this option if you want Veeam Agent for Microsoft Windows to bring the protected computer to the hibernate mode.
    NOTE: This option is available if the hibernate mode is enabled on the protected computer.
  • Shutdown: select this option if you want Veeam Agent for Microsoft Windows to shut down the protected computer.
  • KeepRunning: select this option if the protected computer must keep on working.

True

Named

False

 

EnableDailySchedule

For periodical backups.

Enables daily schedule.

Veeam Agent backup job will start at the time specified in the DailyOptions parameter.

False

Named

False

 

BackupAtLock

For backups at a particular event.

Indicates that the Veeam Agent backup job will start when the user locks the protected computer.

False

Named

False

 

BackupAtLogOff

For backups at a particular event.

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

For backups at a particular event.

Specifies how often the Veeam Agent backup job will run.

Use the BackupTimeoutType parameter to set the job interval.

NOTE: This option does not work for daily schedule.

False

Named

False

 

BackupTimeoutType

For the BackupTimeout parameter.

Specifies an interval between the Veeam Agent backup job. Use the following types of time interval:

  • Minute: use this option to set up a minute interval between the backup job sessions.
  • Hour: use this option to set up an hourly interval between the backup job sessions.
  • Day: use this option to set up a daily interval between the backup job sessions.

False

Named

False

 

BackupAtTargetConnection

For backups at a particular event

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 1

This example shows how to create a schedule for a Veeam Agent job that backs up Windows workstations. The job will run with the following settings:

  • The job will run every day at 7:00 PM.
  • In case the protected computer is powered off when the backup job starts, Veeam Agent for Microsoft Windows will start the scheduled backup job when the protected computer is powered on.
  • Veeam Agent for Microsoft Windows will bring the computer to the hibernate mode after the backup job completes successfully.
  • Veeam Agent for Microsoft Windows will back up the protected computer when the user logs off.

To create the schedule, perform the following steps:

  1. Run New-VBRDailyOptions to specify the daily schedule. Save the result to the $daily variable.
  2. Run New-VBRWindowsWorkstationScheduleOptions with the $daily variable. Specify the following settings:
  • Set the BackupAtPowerOn value for the PowerOffAction parameter to specify the action when the machine powers off.
  • Set the Hibernate value for the PostBackupAction parameter to specify the action after the backup.
  • Use the BackupAtLogOff parameter to create a backup when the user logs off.

$daily = New-VBRDailyOptions -Type Everyday -Period 7:00

New-VBRWindowsWorkstationScheduleOptions -DailyOptions $daily -EnableDailySchedule -PowerOffAction BackupAtPowerOn -PostBackupAction Hibernate -BackupAtLogOff

Example 2

This command creates a schedule for Windows workstation. Per this schedule, Veeam Backup & Replication will start a backup session when the user locks the machine. Use the BackupTimeout parameter to run backup sessions no more than 5 times.

New-VBRWindowsWorkstationScheduleOptions -BackupAtLock -BackupTimeout 5 -BackupTimeoutType Hour

Related Commands

New-VBRDailyOptions

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Explorers User Guide

Backup and Restore of SQL Server Databases

Veeam Plug-ins for Enterprise Applications

PowerShell Reference

Veeam Explorers PowerShell Reference

RESTful API Reference

Required Permissions

Veeam Availability for Nutanix AHV

Veeam Backup for Microsoft Office 365 Documentation

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation