/
Get unit package status
Get unit package status
Description
Gets the status from a unit package relation.
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
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)
Return Value
String. The function returns the status of the the package in relation to the unit, I.e. 'Installed'.
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.GetUnitPackageStatus("Klient","Computer","HWIventory","v4.1","1")
, multiple selections available,
Related content
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
$cs.MSI_GetPropertiesFromMSI
$cs.MSI_GetPropertiesFromMSI
More like this
CMS_RemovePackageFromUnit
CMS_RemovePackageFromUnit
More like this
CMS_AddPackageToUnit
CMS_AddPackageToUnit
More like this
CMS_AddUnitToWSUSUnAssignedGroup
CMS_AddUnitToWSUSUnAssignedGroup
More like this
$cs.Reg_ExistVariable
$cs.Reg_ExistVariable
More like this