Get schedule

Description

Returns a schedule object by Id

 

Syntax

GetSchedule(Byval Id as String) as String

 

Parameters

Id (String)

Id of the requested unit

 

Return value

Returns a 'pipe'-delimited (|) string containing the following variables; Id,  ScheduleStart,  ScheduleEnd,  Occurrences,  IntervalStart,  IntervalEnd,  Recurrence,  RecurrencePattern,  Run, LastRun, Active, WOL, Guid

 

Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
oCMS.SetDefaultManagementPoint("1")
Wscript.echo oCMS.GetSchedule("5") 

The example above will return something like this: 5|06-01-2011 12:00:00||0|00:00:00|1.00:00:00|Periodical|RecurEvery[1] weeks on [Monday-Tuesday-Wednesday-Thursday-Friday-Saturday-Sunday]|Weekly||True||842b2894-cdab-4a2c-905c-17ee052179db