To help you diagnose the problems with scripts that are not doing what you expect them to do, you can view trace messages during the execution of the script.
Follow the steps in Testing an Unpublished Script to load an unpublished script.
or
Follow the steps in Testing a Published Scripting Policy to load a published Scripting policy.
Click
to display the ZENworks Endpoint Security Agent Script Tracing dialog box.Select
if you want to include output for all actions.If you do not include system messages, only messages generated by Action.Trace commands in the script are output. For more information about using Action.Trace commands, see void Action.Trace(string msg).
Click
to execute the script.