Page tree
Skip to end of metadata
Go to start of metadata

Description

Adds Unit to the specified group in Global.


Syntax

AddUnitToGroup(Byval UnitName as String, Byval UnitType as String, Byval GroupName as String, Byval GroupType as String) as Boolean


Parameters

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • "Computer"
  • "User"
  • "Printer"

GroupName (String)

The name of the group

GroupType (String)

The type of the group;

  • "Calendar"
  • "Department"
  • "Reinstall"
  • "Security"
  • "Static"
  • "Dynamic_SQL" (Only Unittype=Printer)
  • "Dynamic_ADSI" (Only Unittype=Printer)


Return Value

Boolean. The function returns True if successful, otherwise false.


Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetDefaultManagementPoint("1") 
Wscript.echo oCMS.AddUnitToGroup("Klient","computer","test","Static")
  • No labels