The Script Settings panel lets you define the language, content, and execution space for the script.
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.
Select JScript or VBScript as the scripting language.
Click Edit to add the script content.
ZENworks supports standard JScript and VBScript coding methods, with the following exceptions.
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.
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 Endpoint Security Scripting Reference.