Run After Distribution Application Script is not working as expected

  • 3591452
  • 10-Jul-2007
  • 30-Apr-2012


Novell ZENworks 7 Desktop Management Support Pack 1 - ZDM7 SP1 Desktop Management


Workstation associated application with a "Run after Distribution" script is being launched every time a new user logs in and runs the application.


This is working as designed. Distribution items (such as files and registry keys) are not run for the new user if the distribution has already been delivered to the workstation.
Unlike the distribution scripts which are always executed when the distribution has not run for the new user.

Additional Information

Steps To Reproduce:

1) Create a simple application object
2) Distribution Options -> Application Files -> Create a simple "Copy if Does not Exist" action (e.g. copy regedit to the root of C:)
3) Distribution Options -> Distribution Scripts -> Run after Distribution (use the command: copy "%WINDIR%\NOTEPAD.exe""%PROGRAMFILES%")
4) Set the Script Engine to %ComSpec% /C and the extension to .cmd
5) Associate the application to the workstation.
6) Run the application (notice the files are copied)
7) Delete the 2 newly created files
8) Create a new user and log in with that user
9) Run (not Verify) the application

The only file copied is the one specified in the distribution script.