New-RMSchedule

From PowerGUI Wiki

Jump to: navigation, search

Creates a schedule for the backup creation operation you want to perform on a particular computer collection.

Contents

Syntax

New-RMSchedule -Once -StartDate <DateTime> [-MinutesDuration <Int32>] [-MinutesInterval <Int32>] [<CommonParameters>] New-RMSchedule -Daily -DaysInterval <Int32> -StartDate <DateTime> [-EndDate <DateTime>] [-MinutesDuration <Int32>] [-MinutesInterval <Int32>] [<CommonParameters>] New-RMSchedule -Weekly -WeeksInterval <Int32> -DaysOfWeek <DaysOfTheWeek> -StartDate <DateTime> [-EndDate <DateTime>] [-MinutesDuration <Int32>] [-MinutesInterval <Int32>] [<CommonParameters>] New-RMSchedule -MonthlyDate -Day <Int32> -Months <Months> -StartDate <DateTime> [-EndDate <DateTime>] [-MinutesDuration <Int32>] [-MinutesInterval <Int32>] [<CommonParameters>] New-RMSchedule -MonthlyDOW -DaysOfWeek <DaysOfTheWeek> -Months <Months> -Week <WhichWeek> -StartDate <DateTime> [-EndDate <DateTime>] [-MinutesDuration <Int32>] [-MinutesInterval <Int32>] [<CommonParameters>]

Detailed Description

Creates a schedule to perform the backup creation operation a particular computer collection. You can use the parameters of this cmdlet to set a recurring or non-recurring schedule for the backup creation operation.



Related Commands

Parameters

Name Description Required? Pipeline Input Default Value
Once Runs the backup creation operation only once. true false
StartDate Specifies the date when the backup creation operation schedule comes into effect. true false
MinutesDuration Specifies the time period (in minutes) during which you want to repeatedly run (invoke) the backup creation operation. To set the time interval between invocations of the backup creation operation, use the MinutesInterval parameter. false false
MinutesInterval Specifies the time interval (in minutes) between invocations of the backup creation operation. To set the time period during which you want to repeatedly run (invoke) the backup creation operation, use the MinutesDuration parameter. false false
Daily Runs the backup creation operation on a daily basis. true false
DaysInterval Sets an interval (in number of days) between invocations of the backup creation operation. true false
EndDate Specifies the date when the backup creation operation schedule expires. false false
Weekly Runs the backup creation operation on a weekly basis. true false
WeeksInterval Sets an interval (in number of weeks) between invocations of the backup creation operation. true false
DaysOfWeek true false
MonthlyDate Runs the backup creation operation on particular day of month. To set the months and day of month when you want to run the backup creation operation, use the Months and Day parameters respectively. true false
Day Sets the day of month when you want to run the backup creation operation. true false
Months Sets the months when you want to run the backup creation operation. true false
MonthlyDOW Runs the backup creation operation on particular days of week in particular months. To set the months, weeks, and days of week, use the Months, Week, and DaysOfWeek parameters respectively. true false
Week Sets the week of month when you want to run the backup creation operation. true false

Examples

Example 1

New-RMSchedule -Once -StartDate "2/20/2008 1:00"

Runs the backup creation operation at 1:00 a.m. on the 20th February 2008.

Example 2

New-RMSchedule -Daily -StartDate "2/20/2008 1:00" -DaysInterval 3

Runs the backup creation operation every 3 days, starting from 1:00 a.m. on the 20th February 2008.

Example 3

New-RMSchedule -Weekly -StartDate "2/20/2008 1:00" -WeeksInterval 2 -DaysOfWeek Monday,Friday

Runs the backup creation operation on Monday and Friday of every second week, starting from 1:00 a.m. on the 20th February 2008.

Example 4

New-RMSchedule -MonthlyDate -StartDate "2/20/2008 1:00" -Day 1

Runs the backup creation operation on every first day of each month (the Months parameter is omitted, therefore the backup creation operation is invoked each month), starting from 1:00 a.m. on the 20th February 2008.

Example 5

New-RMSchedule -MonthlyDOW -StartDate "2/20/2008 1:00" -DaysOfWeek 1,5 -Week 1

Runs the backup creation operation on every first Monday and Friday of each month, starting from 1:00 a.m. on the 20th February 2008.

Personal tools