ZENworks scripted images using variables fail to process correctly

  • 3664671
  • 11-Jan-2007
  • 30-Apr-2012

Environment

Novell ZENworks 7 Desktop Management - ZDM7 Imaging

Situation

ZENworks scripted images using variables fail to process correctly.
Imaging scripts using extra % characters for variable names do not work after applying Hot Patches after ZDM7 SP1 was made available.
Prior to Hot Patches for ZDM 7 SP1, running 'img a' would create a zenAdvancedScript file and would replace %% with % wherever it existed. With HP2, the script is left as it is in the object (i.e. all %% are still %%). This breaks imaging scripts.

Resolution

It is no longer necessary to use extra % characters as a workaround to get script variables to be recognized.
Original example:
file:run,"img rp %%PROXYADDR%% //%%PROXYADDR%%/images/%%drivers_image%% a1:p1",verbose
To fix the problem, remove the extra % characters:
file:run,"img rp %PROXYADDR% //%PROXYADDR%/images/%drivers_image% a1:p1",verbose
NOTES: