New-VBRMaintenanceWindowOptions

Short Description

Configures a maintenance window for automatic update installation.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

New-VBRMaintenanceWindowOptions [-Enable] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [<CommonParameters>]

Detailed Description

This cmdlet returns the VBRMaintenanceWindowOptions object. This object contains the settings of a maintenance window.

Run the Set-VBRGeneralUpdateOptions cmdlet to apply the settings.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

DailyOptions

Specifies a day of the week when updates are installed automatically.

Accepts the VBRDailyOptions object. To get this object, run the New-VBRDailyOptions cmdlet.

False

Named

False

Enable

Enables a maintenance window when updates are installed automatically.

SwitchParameter

False

Named

False

MonthlyOptions

Specifies a day of the month when updates are installed automatically.

Accepts the VBRMonthlyOptions object. To get this object, run the New-VBRMonthlyOptions cmdlet.

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRMaintenanceWindowOptions

Examples

Example 1. Creating Weekly Maintenance Window

This command creates a maintenance window on a specific day of the week.

$dailywindow = New-VBRDailyOptions

New-VBRMaintenanceWindowOptions -Enable -DailyOptions $dailywindow

Perform the following steps:

  1. Run the New-VBRDailyOptions cmdlet. Save the result to the $dailywindow variable.
  2. Run the New-VBRMaintenanceWindowOptions cmdlet. Specify the Enable parameter value. Set the $dailywindow variable as the DailyOptions parameter value.

Example 2. Creating Monthly Maintenance Window

This command creates a maintenance window on a specific date of the month.

$monthlywindow = New-VBRMonthlyOptions

New-VBRMaintenanceWindowOptions -Enable -MonthlyOptions $monthlywindow

Perform the following steps:

  1. Run the New-VBRMonthlyOptions cmdlet. Save the result to the $monthlywindow variable.
  2. Run the New-VBRMaintenanceWindowOptions cmdlet. Specify the Enable parameter value. Set the $monthlywindow variable as the MonthlyOptions parameter value.

Related Commands

Set-VBRGeneralUpdateOptions

Page updated 8/4/2025

Page content applies to build 13.0.0.4967