Get unit last runtime
Description
Gets a unit's last agent run time.
Syntax
GetUnitLastRuntime(Byval UnitName as String, Byval UnitType as String) as String
Parameters
UnitName (String)
The name of the unit
UnitType (String)
Type of Unit
- "1" (Computer)
- "2" (User)
Return Value
String. The date in the format; 'dd-MM-yyyy hh.mm.ss', I.e. '11-10-2012 08:18:10'
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") wscript.echo oCMS.SetDefaultManagementPoint("1") wscript.echo oCMS.GetUnitLastRuntime("Klient","1")Â