Get unit package status
Description
Section titled “Description”Gets the status from a unit package relation.
Syntax
Section titled “Syntax”GetUnitPackageStatus(Byval UnitName as String, Byval UnitType as String, Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String) as String
Parameters
Section titled “Parameters”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”
Return value
Section titled “Return value”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.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.GetUnitPackageStatus("Klient","Computer","HWIventory","v4.1","1")