# Get schedule

> Returns a schedule object identified by its Id as a pipe-delimited string.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/get-schedule/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## 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**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
oCMS.SetInstanceManagementPoint("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
