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 or UUID of the unit.

UnitType (String)

Type of Unit

  • “Computer” or “1”
  • “User” or “2”

String. The date and time of the last agent run, for example ‘11-10-2012 08:18:10’. The date and time format follows the regional settings of the computer that runs the script.

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