/
Get update inventory for unit
Get update inventory for unit
Description
Gets a list of update inventory for a specific unit.
Syntax
GetUpdateInventoryForUnit(Byval UnitName as String, Byval UnitType as String) as ArrayList
Parameters
UnitName (String)
Name or UUID of the unit to retrieve inventory for
UnitType (String)
Type of the unit
- "Computer"
- "User"
Return value
The function returns an array of Update Inventory items. Each element (inv) in the array is a joined line with the character defined with Set splitter.
- Qfename
- InstallDate
- Update.ID
- Update.Name
- Revision
- InstallCount
- Status
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.SetDefaultManagementPoint("1") Set aUnit = oCMS.GetUpdateInventoryForUnit("Klient","User") for each item in aUnit wscript.echo item next
, multiple selections available,
Related content
Business Unit support
Business Unit support
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
Patch Management Service
Patch Management Service
More like this
CMS_AddUnitToWSUSUnAssignedGroup
CMS_AddUnitToWSUSUnAssignedGroup
More like this
$cs.MSI_GetPropertiesFromMSI
$cs.MSI_GetPropertiesFromMSI
More like this
CMS_RemovePackageFromUnit
CMS_RemovePackageFromUnit
More like this