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. 
 Perform the following steps: 
  | 
Example 2. Creating Monthly Maintenance Window
This command creates a maintenance window on a specific date of the month. 
 Perform the following steps: 
  | 
Related Commands