2.2 Testing an Unpublished Script

The following steps explain how to test a script that is not yet published in a Scripting policy. If you want to test a script that has already been published to a device as a Scripting policy, see Section 2.3, Testing a Published Scripting Policy.

  1. Make sure that the script testing features of the Endpoint Security Agent are enabled for the device where you plan to test the script. For details, see Enabling Script Testing in the Endpoint Security Agent.

  2. On the device, double-click the icon in the notification area, then click Endpoint Security.

  3. In the Endpoint Security Agent Actions section, click About to display the About dialog box.

  4. Click Diagnostics.

  5. Click Scripting to display the override password prompt.

  6. Specify the override password, then click OK to display the ZESM Scripting Development Environment dialog box.

  7. In the Source field, click Browse, select the script you want to test, then click Open.

    The script source, language, name, and identifier are displayed.

  8. In the Context field, select the context in which you want the script to run.

  9. In the Triggers section, select the execution triggers to test.

    Location Change: Triggers script when any location change occurs.

    Network Change: Triggers script when any network environment change occurs.

    Network Connect: Triggers script when any network (wireless, wired, modem/dialup) connection occurs.

    Network Disconnect: Triggers script when any network (wireless, wired, modem/dialup) disconnect occurs.

    Policy Change: Triggers script when any Security policy change is received.

    Run Now: Triggers script immediately upon loading of the script.

    Timer: Triggers script at the specified interval.

  10. Click Load to load the script and the triggers.

    If the Run Now trigger is selected, the script is executed immediately. Otherwise, it is executed as designated by the selected triggers.

  11. When you are done testing the script, click Unload to remove the script from memory and keep it from executing anymore.