Use this Knowledge Script to delete a specified domain group account or local group account. This script raises an event when the group is deleted successfully or when the deletion fails.
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.
Windows 2003 Server or later
The default interval for this script is Run once.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
Name of the group to be deleted |
Provide the name of the group account you want to delete. |
Event if group is deleted? |
Set to y to raise an event if the group account is deleted successfully. The default is n. |
Event if group is not deleted? |
Set to y to raise an event if the group account is not deleted. The default is y. |
Delete local group? |
Set to y to delete a local group. If set to n, you must enable Delete domain group? to delete a domain group. The default is n. |
Delete domain group? |
Set to y to delete a domain group account. If set to n, enable Delete local group? to delete a local group. If set to y, the domain account affected is one associated with the domain of the computer where the job is running. The default is y. |
Event severity: Group was not deleted |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the group was not deleted. The default is 12 (yellow event indicator). |
Event severity: Group was deleted |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the group was deleted. The default is 25 (blue event indicator). |