smsclictr.automation library
Assembly: smsclictr.automation(in smsclictr.automation.dll) Version: 1.1.3731.16627 (1.1.2.4)
Run a ScheduleID
Namespace:
smsclictr.automation
Assembly: smsclictr.automation(in smsclictr.automation.dll) Version: 1.1.3731.16627 (1.1.2.4)
Syntax
C# |
---|
public void RunScheduleID( string ScheduleID ) |
Parameters
- ScheduleID
- Type:
System
.
.
::
.
String
Schedule Identifier
Examples
C#:
PowerShell:
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( "workstation01"); //Run a HardwareInventory Schedule oClient.Schedules.RunScheduleID( "{00000000-0000-0000-0000-000000000001}"); } } }
(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( "workstation01") $SMSClient.Schedules.RunScheduleID( "{00000000-0000-0000-0000-000000000001}")