Skip to content

Get unit linked user

Gets a computer’s linked Users.

GetUnitLinkedUser(Byval ComputerName as String) as ArrayList

ComputerName (String)

The name of the computer

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

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