Get unit linked user
Description
Section titled “Description”Gets a computer’s linked Users.
Syntax
Section titled “Syntax”GetUnitLinkedUser(Byval ComputerName as String) as ArrayList
Parameters
Section titled “Parameters”ComputerName (String)
The name of the computer
Return Value
Section titled “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
Section titled “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 itemnext