Exit code=8

(imported topic written by SystemAdmin)

I’m attempting to execute a batch file on Win7 Ent x64 and 2008R2 Std x64 machines. The BES console reports success, but the client log shows Exit Code=8. The batch didn’t actually execute correctly. If I run the same batch interactively, it works fine. The nature of the script does not require a logged on user or any particular credentials. The same batch script also works without issue on XP and 2003 when executed by Bigfix. We’re running BES 7.2.5.22.

I’ve tried several variations without success:

wait cmd /C c:\temp\task.bat

wait c:\temp\task.bat

(imported comment written by BenKus)

Hi Jon,

Does the batch script contain local file paths?

If so, you might have a current working directory issue (the directory of the batch script is not the current working directory)… you will need to either add “cd __Download” to the beginning of the batch script or reference all paths as full paths.

Ben

(imported comment written by Doug_Coburn)

Windows 7 and Windows 2008 has UAC enabled by default. I have seen instances where these OS’es will sometimes block scripts from running as part of the UAC controls… disabling UAC or setting an exception will likely fix the problem.