Hi Guys, trying to get SMS 2003 to deploy a batch file that determines if Acrobat 5 exists on the workstation and removes it if it is present. The batch works fine when run from the command line, batch file resisdes on the sms server.

However, when delivered via SMS the batch fails with the following error :-

The program for advertisement "LDN20066" could not be executed ("LDN00035" - "Old Adobe Removal"). The operating system reported error 2147942405: Access is denied. Additional program properties:
Command line: "\\tdsi-sms-ldn01\data\adobe\remove old\oldadobe.bat"
Working directory: c:\windows\
The command line for the program cannot be executed successfully.

Possible cause: This error can be caused by an invalid executable file specified in the command line (such as an Alpha-based executable file on an x86-based computer) or by a corrupt executable file. This error can also be caused if the program is executed from a remote session.
Solution: Make sure that the executable file specified in the program’s command line is valid for the computer it is attempting to run on. Also, manually verify that the specified command line can be executed from within the original package source directory. If necessary, modify the program properties, the package source files, or both. If changes to the package source files are required, use the Manage Distribution Points wizard to update all of the package's distribution points with the new version of the package source files before retrying execution on the client. This program will be retried.

Any suggestions, obviously the access denied error is a big clue, but I cannot see what specific feature/action is triggering that error. The batch file queries the registry on the local machine using the "Reg Query" command.

TIA
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Why is your program trying to run from a hard-coded UNC path, rather than from an SMS distribution point ("\\SMSServer\Smspkg<drv>$")? What have you defined in the "Data Source" tab of your package properties?

I would say that the account that is running the program does not have permissions to access the UNC path that you have specified.

Which context (account) is your program set to run under (user, system, sms account)?
Answered 11/21/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
The distribution point refers to the same UNC, so I have amended the command line in the package to just be the batch file. I was kind of figuring that it was a rights issue, I am installing as Admin (selected the radio button) in the Packages/Programs section.
Answered 11/21/2005 by: lancelot
Yellow Belt

Please log in to comment
0
Quick update - Removing the UNC path from the command line seems to have resolved the issue. Have tested the batch file on two boxes, via SMS, and it works fine.

Thanks for the help.
Answered 11/21/2005 by: lancelot
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity