13.19 LRRemoveParameters

Use this Knowledge Script to remove local repository (LR) configuration information from a managed client computer. Specify the parameter or parameters you want to remove, or remove all parameters from the local repository. This script raises an event each time you run the job. The event details display information about the parameters that were removed.

LR information consists of parameter values that are stored in the local repository. You can use this script in conjunction with the AppManager *_Config* scripts (for example, General_ConfigMachineDown, NT_ConfigServiceDown) to remove the configuration information entered by the *_Config* scripts from the local repository.

To view LR information that is stored in the local repository, use the LRReadParameters script.

13.19.1 Resource Objects

Windows 2003 Server or later

13.19.2 Default Schedule

The default interval for this script is Run once.

13.19.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event if parameters deleted successfully?

Select Yes to raise an event if the script is successful in removing the parameter values. The default is Yes.

Event severity when parameters deleted successfully

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 15 (yellow event indicator).

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 5 (red event indicator).

This script raises an event for unexpected script errors. For example, if a script aborts before the job starts or during the job.

Administration

Delete entire LR?

Select Yes to remove all LR information from the AppManager agent’s local repository. The default is unselected.

If you select Yes, you must specify the name of the parameter or parameters you want to remove. For example, if there are 2 parameters in the local repository, name and location, to remove the location parameter, specify location in any of the Parameter# parameters.

This script can remove up to 20 specified parameters each time you run the script.

Parameter 1 ... 20

Specify the name of the parameter or parameter you want to remove. Enter the parameter name without quotes. For example, if there are 2 parameters in the local repository, name and location, to remove the location parameter, specify location in any of the Parameter# parameters. If you select the Delete entire LR? parameter, you must specify the parameter names.

This script can remove up to 20 specified parameters each time you run the script.