Skip to content

Get unit package status

Gets the status from a unit package relation.

GetUnitPackageStatus(Byval UnitName as String, Byval UnitType as String, Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String) as String

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

PackageName (String)

The name of the package

PackageVersion (String)

The package version

PackageType (String)

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

String. The function returns the status of the the package in relation to the unit, I.e. ‘Installed’.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
Set aUnit = CreateObject("System.Collections.ArrayList")
wscript.echo oCMS.GetUnitPackageStatus("Klient","Computer","HWIventory","v4.1","1")