I know there have been some issues with 9.0 and batch file return code mapping. I thought SP2 had fixed most of them. I would turn ECHO ON in the batch file. This will give you better info in the sdclient log files. Are the clients also upgraded to SP2?
I added echo on and it didn't really tell me much. I have upgraded the agent on the workstation. 1 thing I just saw...I ran the task again and it said it failed but about 15 minutes later I went back to look at the scheduled task and it has now moved to successful. I don't get it.
Here is what I will do since you made some changes. I would delete the distribution package and scheduled task, recreate both, then try and test on a workstation with SP2 installed and see what the results are.
I am Elyas Sumer and facing the same issue you are having, the only thing is my batch file do copy a reg file to C:\windows\proxy settings\ and copy a shortcut to %username%\Favorites\Links\
the batch file to copy the reg file to Proxy settings is running with the SystemAccount the other batch file is running with the local account to copy the shortcut.
batch file is working perfectly but the console says "Failed to install package" and the Return code is 16386 even though it ran correctly and I even returned a 0 at the end of the batch file using the exit /b 0 command (i have tried it with and without this and got the same results).
How did you solve your issue with this, i hope you can help me out.
Thanks in advance,