/
Add unit to group
Add unit to group
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")
Related content
SDK - CapaInstaller Software Development Kit functions
SDK - CapaInstaller Software Development Kit functions
Read with this
Add unit to group
Add unit to group
More like this
Add unit to group
Add unit to group
More like this
Add unit to group
Add unit to group
More like this
Add unit to group (BU)
Add unit to group (BU)
More like this
Add unit to group (BU)
Add unit to group (BU)
More like this