12.2 AddGroupViaAD

Use this Knowledge Script to add a domain group account to Active Directory. You must run this script on a computer that is a Domain Controller. The group is added to the domain associated with the managed computer where the script runs. This script raises an event when the operation is successful or when it fails.

12.2.1 Prerequisite

Before running this script, ensure that the AppManager Client Resource Monitor service (netiqmc.exe) is set to log on as a domain user account in the same domain as, or a domain trusted by, the target computer.

12.2.2 Resource Objects

Windows 2003 Server or later

12.2.3 Default Schedule

The default interval for this script is Run once.

12.2.4 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Name of group to be added

Provide the name of the domain group account to add.

Active Directory Users and Computers displays the group name in Group name.

Event if group was added?

Set to y to raise an event if the domain group was added. The default is n.

Event if group was not added?

Set to y to raise an event if the domain group was not added. The default is y.

Event severity: Group was not added

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a domain group was not added. The default is 12 (yellow event indicator).

Event severity: Group was added

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a domain group was added. The default is 25 (blue event indicator).