Configure Script

The Configure Script page lets you define the language, content, and execution space for the script.

Run As

Select whether you want the script to run in the system context or the user context:

  • System: The script runs with the same rights as a Windows service.

  • User: The script runs with the rights provided by the current user session.

Language

Select JScript or VBScript for the script language.

Script Content

Click Edit to add the script content.

ZENworks supports standard JScript and VBScript coding methods, with the following exceptions.

  1. WScript.Echo is not supported because return values can’t be sent back to a parent window that is unavailable. Use the Action.Message ZENworks Endpoint Security Management API instead.

  2. Access to Shell Objects. Use the following modified nomenclature/call:

    [JScript] 
       Use: 
       var WshShell = new ActiveXObject("WScript.Shell");
       Instead of: 
       var WshShell = WScript.CreateObject ("WScript.Shell");
    
    [VBScript] 
       Use:
       Dim WshShell
       Set WshShell = CreateObject("WScript.Shell")
       Instead of:
       Dim WshShell
       Set WshShell = WScript.CreateObject("WScript.Shell")
    

ZENworks also provides a scripting interface that lets you create advanced scripts. Using the scripting interface, you can determine current state of the Endpoint Security Agent, run actions that change the behavior of the agent or interact with the user, and store variables for use by the script during the current session or across sessions.

For more details about the scripting interface, see the ZENworks 11 Endpoint Security Scripting Reference.

For trademark and copyright information, see Legal Notices.