Get group Printers
Description
Section titled “Description”Returns a list of printers linked to the group.
Syntax
Section titled “Syntax”GetGroupPrinters(Byval GroupName as String, Byval GroupType as String) as ArrayList
Parameters
Section titled “Parameters”GroupName (String)
The name of the group
GroupType (String)
Type of the group
- “Dynamic_ADSI”
- “Calendar”
- “Department”
- “Dynamic_SQL”
- “Reinstall”
- “Static”
Return Value
Section titled “Return Value”The function returns an array of units. Each unit (unitcmp) in the array is a joined line with the character defined with Set splitter.
- printer.DisplayName
- printer.Created
- printer.Status
- printer.Description
- printer.GUID
- printer.ID
- printer.Type.Name
- printer.UUID
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetDefaultManagementPoint("1")Set aUnit = CreateObject("System.Collections.ArrayList")Set aUnit = oCMS.GetGroupPrinters("test","Static")for each item in aUnit wscript.echo itemnextAvailable from:
Section titled “Available from:”CapaInstaller 5.1 build 105