Adds Unit to the specified group in either Global or the specified Business Unit.
AddUnitToGroupBU(Byval UnitName as String, Byval UnitType as String, Byval GroupName as String, Byval GroupType as String, ByVal businessUnitName As String) as Boolean
The name of the unit
Type of Unit
The name of the group
The type of the group;
- "Dynamic_SQL" (Only Unittype=Printer)
- "Dynamic_ADSI" (Only Unittype=Printer)
The name of the Business Unit where the group is located. If this is left blank, it is assumed the group is in Global. (If a Business Unit is specified, the unit must also be in that Business Unit)
Boolean. The function returns True if successful, otherwise false.