smsclictr.automation library
Get all ScheduleID's of a local Advertisement

Namespace:  smsclictr.automation
Assembly:  smsclictr.automation(in smsclictr.automation.dll) Version: 1.1.3731.16627 (1.1.2.4)

Syntax

C#
public 
string[] 
GetSchedulIDs(
	
string 
ADV_AdvertisementID,
	
string 
PKG_PackageID,
	
string 
PRG_ProgramID
)

Parameters

ADV_AdvertisementID
Type: System . . :: . String
Advertisment ID
PKG_PackageID
Type: System . . :: . String
Package ID
PRG_ProgramID
Type: System . . :: . String
Program ID (Program Name)

Return Value

String Array with ScheduleID's for the defined Advertisement (ScheduleID Example:"LAB20001-LAB00003-D34DE188"

Remarks

Only scheduled Advertisements (DateTime/As soon as possible/..) do have a ScheduleID

Examples

C#:
CopyC#
using System;
using
System.Collections.Generic;
using System.Text;
using smsclictr.automation;
using System.Management;

namespace
ConsoleApplication1
{

class Program
	{
	
static 
void Main(
string[] args)
		{
			SMSClient oClient = 
new SMSClient(
"remotehost");
		
string[] aSchedID =
oClient.SoftwareDistribution.GetSchedulIDs(
"LAB20000", 
"LAB00002", 
"CMD");
		
if (aSchedID.Length > 
0)
			{
				Console.WriteLine(aSchedID[
0]);
		}
	}
}
}
PowerShell:

(copy smsclictr.automation.dll to the %HOMEDRIVE%\%HOMEPATH% Folder of the current User)

CopyC#
[

void][System.Reflection.Assembly]::LoadFile(

"$HOME\smsclictr.automation.dll")
$SMSClient = New-Object -TypeName smsclictr.automation.SMSClient(
"localhost")
$SMSClient.SoftwareDistribution.GetSchedulIDs(
"LAB20000", 
"LAB00001", 
"CMD")[
0]

See Also