/
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")
, multiple selections available,
Related content
CMS_AddUnitToWSUSUnAssignedGroup
CMS_AddUnitToWSUSUnAssignedGroup
More like this
CMS_AddComputerToStaticGroup
CMS_AddComputerToStaticGroup
More like this
$cs.UsrMgr_AddUserToLocalGroup
$cs.UsrMgr_AddUserToLocalGroup
More like this
Business Unit support
Business Unit support
More like this
CMS_AddPackageToUnit
CMS_AddPackageToUnit
More like this
CMS_RemovePackageFromUnit
CMS_RemovePackageFromUnit
More like this