ZENworks® Endpoint Security Management 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")
All scripts are executed in the system context unless the following comment is added to the top of the script:
[Jscript] //@ImpersonateLoggedOnUser [VBScript] '@ImpersonateLoggedOnUser