I am trying to use addon images to install multiple applications on our base image. I am using images created from Application Objects. I am running the following script with auto admin login in order to preinstall the applications, since it must run once before the application is actually installed.

rem ###The next line stops the Auto Admin Login.###
c:\windows\regedit.exe /s c:\windows\zmg\winlogon2.reg

rem ###Run NAL and unload
"c:\Program Files\Novell\Zenworks\nalwin32.exe" /U

rem ###This loop waits for nalagent to finish before rebooting the PC.###
:loop
tasklist | find /i "nalagent.exe" >nul
if %errorlevel% EQU 0 (
goto loop
)

rem ###This forcibly reboots the PC.####
c:\windows\zmg\ncshtdwn.exe /7
This runs successfully and then the computer reboots. The problem I am having is that since the objects are set to Force Run, they run again when a user logs in. I have not been able to successfully stop this behavior. Does anyone know of a solution for this? Thanks.