Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: service network share
For example, the line in a .wbt or .exe script " Run("G:\Dts\calc2.exe") " works fine when run from the local NT box (G: is on a different NT server). But, when this Winbatch script is run from a remote Unix box, a permission denied error is generated. The Error window shows "1932 WinExec: Access denied". I have also tried using RunShell, and ShellExecute. All three give the same result.
The Disk, Directory, and File permissions are all set to "EVERYONE - All Access". I have tried running it from inside a .bat file also.
The processes on the NT box that intercept and run the command from the Unix box are listed in the services as "Run as System" with the "Interface with Desktop" box checked. The user it is running as has administrator privileges.
I have tried numerous variations with this problem to no avail. Any help would be appreciated.
I don't see how it can be running under the administrator account, because if it is set to "interact with the desktop" then it must be running under the system account - and it generally never has network access privileges.
Are you using the wwwnt32i.dll NT extender? Maybe add a wntRunAsUser function in there to help out.
And it can't hurt to add:
IntControl(1001,1,0,0,0) so that a user logging off does not cancel the script.
Doing these things will make it possible for a service that has no credentials to access a network share. This does compromise system security on the server where these changes are made so be sure not to put anything important on the share.
You can read about it with MSKB article 289655.
Article ID: W14949
File Created: 2003:08:15:13:45:52
Last Updated: 2003:08:15:13:45:52