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 or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer” or “1”
- “User” or “2”
Return value
Section titled “Return value”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.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.GetUnitLastRuntime("Klient","1")