/build/static/layout/Breadcrumb_cap_w.png

Batch Files (Access Denied) & SMS 2003

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

Answers (3)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
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)?
Posted by: lancelot 19 years ago
Yellow Belt
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.
Posted by: lancelot 19 years ago
Yellow Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ