New-VBRDailyOptions
Short Description
Creates a new VBRDailyOptions object.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
New-VBRDailyOptions [-DayOfWeek <DayOfWeek[]>] [-Period <TimeSpan>] [-Type <VBRDailyOptionsType>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Related Commands
None
Return Type
Detailed Description
This cmdlet creates the VBRDailyOptions object. This object contains the daily schedule settings. You can use this object to set job schedule or policies.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Day | Used to set days for the Type parameter (SelectedDays option). Default: Saturday. | False | Named | False | False |
Period | Specifies the time when the job will start. Accepts TimeSpan type. Default: 18:00. | False | Named | False | False |
Type | Specifies the job schedule type:
| False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates schedule with the following settings: every Friday at 23:00. Save the result to the $fridayoptions variable for later use.
Example 2
This command creates schedule with the following settings: every day at 20:00. Save the result to the $everydayoptions variable for later use.
Example 3
This command creates schedule with the following settings: on weekends at 18:00. The Period is not set — the command will use the default value. Save the result to the $weekendoptions variable for later use.