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 or UUID 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” or “Computer”
  • “2” or “User”

String. The function returns the status of the package in relation to the unit, for example ‘Installed’, ‘Waiting’, or ‘Failed’. If the package isn’t linked to the unit, the function fails.

The package must be on the Management Point that you selected with Set instance management point. To get the status of all packages on a unit, use Get package status.

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetInstanceManagementPoint("1")
wscript.echo oCMS.GetUnitPackageStatus("Klient","Computer","HWIventory","v4.1","1")