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

New-VBRBackupWindowOptions

Short Description

Creates new job backup window settings.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

New-VBRBackupWindowOptions [-FromDay <DayOfWeek>] [-FromHour <Int32>] [-ToDay <DayOfWeek>] [-ToHour <Int32>] [-Enabled] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

This cmdlet creates an object containing job backup window settings. The backup window sets a time period within which the job is allowed to run.

You can use this object later to apply these settings to a job.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

FromDay

Specifies the day of week on which the backup window opens.

Default: Sunday.

False

Named

False

False

FromHour

Specifies the hour on which the backup window opens.

Default: 0.

False

Named

False

False

ToDay

Specifies the day of week on which the backup window ends.

Default: Saturday.

False

Named

False

False

ToHour

Specifies the hour on which the backup window ends.

Default: 23.

False

Named

False

False

Enabled

Indicates that the backup window is enabled.

False

Named

True (by Value
FromPipeline, ValueFromPipeline
ByPropertyName)

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

VBRBackupWindowOptions

Example

This command creates a backup window object that will allow a job to run from 22 PM on Friday to 22 PM on Sunday. The result is saved to the $windowoptions variable.

PS C:\PS> $windowoptions = New-VBRBackupWindowOptions -FromDay Friday -FromHour 22 -ToDay Sunday -ToHour 22 -Enabled

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation