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