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 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, right-click the ZENworks icon in the notification area, and select Technician Application.

  3. Click Endpoint Security in the ZENworks Agent navigation menu.

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

  5. Click Diagnostics.

  6. Click Scripting to display the override password prompt.

  7. Specify the override password, then click OK to display the ZENworks Endpoint Security Agent Scripting Development Environment dialog box.

  8. 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.

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

  10. 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.

  11. 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.

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