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 backup window object later to apply backup window settings to a job.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
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 (ByValue, | 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
None.
Example
This command creates a backup window object that will allow a job to run from 10 PM on Friday to 10 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 |