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