Create AD group
Description
Section titled “Description”Creates a CapaInstaller AD group (group type Dynamic_ADSI) on the instance Management Point. The members of the group are the computers or users found at the specified LDAP path.
Syntax
Section titled “Syntax”CreateADGroup(ByVal groupName As String, ByVal unitType As String, ByVal LDAPPath As String, ByVal recursive As Boolean) As Boolean
Parameters
Section titled “Parameters”GroupName (String)
The name of the group
UnitType (String)
The type of the elements in the group. This can be either “Computer” or “User”
LDAPPath(String)
The LDAP Path of the elements in the group.
recursive(Boolean)
Indicates if the AD group should be processed recursive. True also includes the objects in the containers below the LDAP path.
Return value
Section titled “Return value”Boolean. Returns true if the group is created. If an AD group with the same name already exists on the Management Point, the function raises an error.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.CreateADGroup("Jylland","Computer","LDAP://OU=CapaInstalled,OU=Workstations,DC=capatest,DC=com",true)