12.9 DeleteUser

Use this Knowledge Script to delete a specified domain user account or local user account. This script raises an event when the user account is deleted successfully or when the deletion fails.

12.9.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.9.2 Resource Objects

Windows 2003 Server or later

12.9.3 Default Schedule

The default interval for this script is Run once.

12.9.4 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Name of the user to be deleted

Provide the name of the user account you want to delete.

Event if user is deleted?

Set to y to raise an event if the user account is deleted successfully. The default is n.

Event if user is not deleted?

Set to y to raise an event if the user account is not deleted. The default is y.

Delete domain user?

Set to y to delete a domain user account. Set to n to delete a local user account. If set to n, the local user account affected is one associated with the domain of the computer where the script is running. The default is y.

Event severity: User was not deleted

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

Event severity: User was deleted

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