Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
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