Skip to main content
SnapCenter cmdlets

Set-SmSchedule

Creates a schedule using information you provide and also trigger schedule based on info.

Syntax

Set-SmSchedule [-ScheduleInformation]  <Hashtable>  [-TaskName]  <String>

Detailed Description

Creates a schedule using information you provide and also trigger schedule based on info.

Parameters

Name Description Required? Pipeline Input Default Value

ScheduleInformation

Specifies mandatory schedule information in a hashtable.

true

true (ByPropertyName)

TaskName

Specifies the mandatory task name.Supported Task : SnapCenterDataCollection, SnapCenterJobsRetention, SnapCenter_AlertCleanUp, SnapCenter_StaleJobCleanUp, SnapCenter_RefreshSyncSnapMirrorBackups,SnapCenter_AuditDiskSpaceCheck, SnapCenter_RemoveSecondaryBackup, SnapCenter_RefreshBackupSnapLock, SnapCenter_ComputeStorageSavings

true

true (ByPropertyName)

Examples

Example 1: Setting a Hourly schedule for any maintainenace task

 Set-SmSchedule -ScheduleInformation @{"ScheduleType"="Hourly";"StartTime"="10:10 AM" ;"EndTime"="11:00 AM";"RepeatTask_Every_Hour"="00:15"} -TaskName SnapCenter_RemoveSecondaryBackup

This example syntax creates an hourly schedule with the task name SnapCenter_RemoveSecondaryBackup that repeats every 15 minutes.

TaskName  : SnapCenter_RemoveSecondaryBackup
Hosts : {}
StartTime : 5/14/2017 10:10:00 AM
DaysoftheMonth:
MonthsofTheYear   :
DaysInterval  :
DaysOfTheWeek :
AllowDefaults : False
ReplaceJobIfExist : False
UserName  :
Password  :
SchedulerType : Hourly
RepeatTask_Every_Hour : 0
IntervalDuration  :
EndTime   : 5/14/2017 11:00:00 AM
LocalScheduler: False
AppType   : False
AuthMode  :
SchedulerSQLInstance  : SMCoreContracts.SmObject
MonthlyFrequency  :
Hour  : 0
Minute: 0
NodeName  :
ScheduleID: 0
RepeatTask_Every_Mins : 15

Example 2 : Setting a Daily schedule for any maintenance task

 Set-SmSchedule -ScheduleInformation @{"ScheduleType"="Daily";"StartTime"="02:45 AM";"DaysInterval"="1"} -TaskName SnapCenter_AuditIntegrityCheck

This example syntax creates an daily schedule with the task name SnapCenter_AuditIntegrityCheck that repeats daily at mentioned start time.

TaskName  : SnapCenter_AuditIntegrityCheck
Hosts : {}
StartTime : 8/20/2025 2:45:00 AM
DaysoftheMonth:
MonthsofTheYear   :
DaysInterval  : 1
DaysOfTheWeek :
AllowDefaults : False
ReplaceJobIfExist : False
UserName  :
Password  :
SchedulerType : Daily

Example 3 : Setting a Weekly schedule for any maintenance task

 Set-SmSchedule -ScheduleInformation @{"ScheduleType"="Weekly";"StartTime"="02:36 AM";"DaysOfTheWeek"="Wednesday"} -TaskName SnapCenter_ComputeStorageSavings

This example syntax creates an daily schedule with the task name SnapCenter_ComputeStorageSavings that repeats Weekly at provided start time on provided days of the week.

TaskName  : SnapCenter_ComputeStorageSavings
Hosts : {}
StartTime : 8/20/2025 2:36:00 AM
DaysoftheMonth:
MonthsofTheYear   :
DaysInterval  :
DaysOfTheWeek : Wednesday
AllowDefaults : False
ReplaceJobIfExist : False
UserName  :
Password  :
SchedulerType : Weekly
RepeatTask_Every_Hour : 1
IntervalDuration  :
EndTime   :
LocalScheduler: False
AppType   : False
AuthMode  :
SchedulerSQLInstance  : SMCoreContracts.SmObject

Example 4 : Setting a Monthly schedule for any maintenance task

 Set-SmSchedule -ScheduleInformation @{"ScheduleType"="Monthly";"StartTime"="06:45 AM";"DaysoftheMonth"="20";""MonthsOfTheYear"="AUGUST"} -TaskName SnapCenter_AuditIntegrityCheck

This example syntax creates an daily schedule with the task name SnapCenter_AuditIntegrityCheck that repeats monthly at provided start time on provided days of the month.

TaskName  : SnapCenter_AuditIntegrityCheck
Hosts : {}
StartTime : 8/20/2025 6:45:00 AM
DaysoftheMonth: 20
MonthsofTheYear   : AUGUST
DaysInterval  :
DaysOfTheWeek :
AllowDefaults : False
ReplaceJobIfExist : False
UserName  :
Password  :
SchedulerType : Monthly
RepeatTask_Every_Hour : 1
IntervalDuration  :
EndTime   :
LocalScheduler: False
AppType   : False
AuthMode  :
SchedulerSQLInstance  : SMCoreContracts.SmObject