Run Script bundle action of the type .CMD may fail where lines of script must run line-by-line

  • 7012870
  • 17-Jul-2013
  • 18-Jul-2013

Environment

Novell ZENworks Configuration Management 10.3 Bundles
Novell ZENworks Configuration Management 11 Bundles

Situation

Bundles with a Run Script Bundle action in the Launch tab may fail. If multiple lines are present in the script, ZCM may interpret them as one line causing the script to fail or not return the results expected.

Example:

The following script:

echo %prompt%
echo %programfiles%
echo %os%
echo %computername%


will run as:

echo %prompt% echo %programfiles% echo %os% echo %computername%

Resolution

For ZCM 10.x: This is fixed in version 10.3.4 - see KB 7008244 "ZENworks Configuration Management 10.3.4 - update information and list of fixes" which can be found at https://www.novell.com/support

For ZCM 11.x: This is fixed in version 11.2 - see KB 7010044 "ZENworks Configuration Management 11.2 - update information and list of fixes" which can be found at https://www.novell.com/support

Feedback service temporarily unavailable. For content questions or problems, please contact Support.