Previous Topic: Hierarchy ManagementNext Topic: Example


addSubgroups—Add Subgroups to Computer Group

This action allows you to add subgroups to a group.

This action has the following format:

compgroup action=addSubgroups 
[name=group_name]
{compgrp=group_name}
name

Specifies the name of the computer group the specified computer groups of "compgrp" will be added to.

The group should not be associated with a query.

If this parameter is not coded, the subgroups are copied to the container "Computers and Users".

compgrp

Specifies the name of the computer group to be added.

The parameter can be coded more than once to add the subgroup to a list of computer groups.

Note: The group to which the computer groups are added should not be a query group.