This is an archive version of the document. To get the most up-to-date information, see the current version.

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

VBRDailyOptions

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
Pipeline
Input

Accept
Wildcard
Characters

Day
OfWeek

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:

  • Everyday: the job will run daily.
  • WeekDays: the job will run on week days.
  • SelectedDays: the job will run on selected days. Use the DaysOfWeek parameter to set the days.

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.

PS C:\PS> PS C:\PS> $fridayoptions = New-VBRDailyOptions -DayOfWeek Friday -Period 23:00

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.

PS C:\PS> PS C:\PS> $everydayoptions = New-VBRDailyOptions -Type Everyday -Period 20:00

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.

PS C:\PS> PS C:\PS> $weekendoptions = New-VBRDailyOptions -DayOfWeek Saturday, Sunday