Get User Inventory
Description
Section titled “Description”Gets software inventory for a specific user.
Syntax
Section titled “Syntax”GetUserInventory(Byval UserName as String) as ArrayList
Parameters
Section titled “Parameters”UserName (String)
The user name of the user
Return value
Section titled “Return value”The function returns an array of User Inventory items. Each element (inv) in the array is a joined line with the character defined with Set splitter.
- inv.Category
- inv.Entry
- inv.Value
- inv.Datatype
- inv.GUID
- inv.ID
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")Set aUnit = CreateObject("System.Collections.ArrayList")wscript.echo oCMS.SetDefaultManagementPoint("1")Set aUnit = oCMS.GetUserInventory("Klient")for each item in aUnit wscript.echo itemnext