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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


Gets a list of packages linked to the specified group.


GetGroupPackages(Byval GroupName as String, Byval GroupType as String) as ArrayList


GroupName (String)

The name of the group

GroupType (String)

The type of the group;

  • "Dynamic_ADSI"
  • "Calendar" 
  • "Department"
  • "Dynamic_SQL" 
  • "Reinstall"
  • "Security"
  • "Static"

Return value

The function returns an array of packages. Each package (p) in the array is a joined line with the character defined with Set splitter

  • p.Name 
  • p.Version 
  • p.Type
  • p.DisplayName
  • p.IsMandatory
  • p.ScheduleId
  • p.Description
  • p.GUID
  • p.ID
  • p.IsInteractive
  • p.DependendPackageID
  • p.IsInventoryPackage
  • p.CollectMode
  • p.Priority
  • p.ServerDeploy


Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetDefaultManagementPoint("1") 
Set aUnit =  oCMS.GetGroupPackages("Test","Static") 
for each item in aUnit 
  wscript.echo item 
  • No labels