/
Add package to group
Add package to group
Description
Adds a package to a group.
Syntax
AddPackageToGroup(Byval packageName as String, Byval packageVersion as String, Byval packageType as String, Byval groupName as String, Byval groupType as String) as Boolean
Parameters
PackageName (String)
The name of the package.
PackageVersion (String)
The package Version.
PackageType (String)
The package type;
- 1 (Computer)
- 2 (User)
GroupName (String)
The name of the group that the package should belong to
GroupType (String)
The type of group
- "Dynamic_ADSI"
- "Calendar"
- "Department"
- "Dynamic_SQL"
- "Reinstall"
- "Security" "Static"
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.AddPackageToGroup("Acrobat Reader","v8.0","1","Test","Static")
, multiple selections available,
Related content
How-to Article: Moving Packages from one group to a new
How-to Article: Moving Packages from one group to a new
More like this
CMS_AddUnitToWSUSUnAssignedGroup
CMS_AddUnitToWSUSUnAssignedGroup
More like this
CMS_AddPackageToUnit
CMS_AddPackageToUnit
More like this
CMS_AddComputerToStaticGroup
CMS_AddComputerToStaticGroup
More like this
$cs.UsrMgr_AddUserToLocalGroup
$cs.UsrMgr_AddUserToLocalGroup
More like this
CMS_RemovePackageFromUnit
CMS_RemovePackageFromUnit
More like this