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

New-VBRMonthlyOptions

Short Description

Creates a new VBRMonthlyOptions object.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

New-VBRMonthlyOptions [-Period <TimeSpan>] [-DayNumberInMonth <VBRDayNumberInMonth>] [-DayOfWeek <DayOfWeek>] [-Months <VBRMonth[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Related Commands

None

Return Type

VBRMonthlyOptions

Detailed Description

This cmdlet creates the VBRMonthlyOptions object. This object contains the job monthly schedule settings. You can use this object to set job schedule or policies.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Period

Specifies the time when the job will run.

Accepts TimeSpan type.

Default: 22:00.

False

Named

False

False

Day
Number
InMonth

Specifies the number of week day in month when the job will run: First, Second, Third, Fourth, Last, OnDay.

Use the DayOfWeek parameter to specify the week day for this parameter.

Default: Forth.

False

Named

False

False

Day
OfWeek

Used to set the week day for the DayNumberInMonth parameter.

Default: Saturday.

False

Named

False

False

Months

Specifies the months on which the job will run: January, February, March, April, May, June, July, August, September, October, November, December.

Default: January, February, March, April, May, June, July, August, September, October, November, December.

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 the schedule for a job to run on 23:00 on the second Wednesday every month.

PS C:\PS> PS C:\PS> New-VBRMonthlyOptions -DayNumberInMonth Second -DayOfWeek Wednesday -Period 23:00

Example 2

This command creates the schedule for a job to run on 10:00 on the last Sunday of January and July.

PS C:\PS> PS C:\PS> New-VBRMonthlyOptions -DayNumberInMonth Last -DayOfWeek Sunday -Period 10:00 -Months January, July