/
Get units on business unit
Get units on business unit
Description
Gets a list of units on a specific Business Unit.
Syntax
GetUnitsOnBusinessUnit(ByVal businessUnit As String, Optional ByVal unitType As String = "") As ArrayList
Parameters
BusinessUnit(String)
UnitType (String)
Type of Unit.
- "Computer"
- "User"
This parameter is optional. If left out, both users and computers are returned.
Return Value
The function returns an array of units. Each unit (unit) in the array is a joined line with the character defined with Set splitter.
- unit.Name
- unit.Created
- unit.LastExecuted
- unit.Status
- unit.Description
- unit.GUID
- unit.ID
- unit.Type.Name
- unit.UUID
- Unit.IsMobileDevice ("True" or "False")
- unit.location
Example
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") Set aUnit = CreateObject("System.Collections.ArrayList") wscript.echo oCMS.SetDefaultManagementPoint("1") Set aUnit = oCMS.GetUnitsOnBusinessUnit("Sales Denmark") for each item in aUnit wscript.echo item next
, multiple selections available,
Related content
Get units on business unit
Get units on business unit
More like this
Get units on business unit
Get units on business unit
More like this
Get units on business unit
Get units on business unit
More like this
Get units
More like this
Get units
More like this
Get units
More like this