Skip to content

Get unit last runtime

Gets a unit’s last agent run time.

GetUnitLastRuntime(Byval UnitName as String, Byval UnitType as String) as String

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “1” (Computer)
  • “2” (User)

String. The date in the format; ‘dd-MM-yyyy hh.mm.ss’, I.e. ‘11-10-2012 08:18:10’

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.GetUnitLastRuntime("Klient","1")