Get unit linked user

Description

Gets a computer's linked Users.


Syntax

GetUnitLinkedUser(Byval ComputerName as String) as ArrayList


Parameters

ComputerName (String)

The name of the computer


Return Value

The function returns an array of users. Each user (u) in the array is a joined line with the character defined with Set splitter

  • u.Name
  • u.Created
  • u.LastExecuted
  • u.Status
  • u.Description
  • u.GUID
  • u.ID
  • u.Type.Name


Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetDefaultManagementPoint("1")         
Set aUnit=  oCMS.GetUnitLinkedUser("Klient") 
for each item in aUnit 
  wscript.echo item 
next