All Forums >> [Scripting] >> WSH & Client Side VBScript >> Access denied while accessing network share as localsystem Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I´ve found myself the weirdest error since starting to script.
I have created an kind of software distribution script.
i want to have the script centrally running so that change can be made to script without updating the workstations manually
I´ve created an service which runs under localsystem, and checkes an network share for updates.
When starting the service i want to load script : \\server\share\scriptname.vbs This all works. But my problem is that WINS / DNS is not used here. So everything works on broadcast or IP. BEcause the workstations are in different subnets i have to use ip adresses. So, the whole script works when specifying paths like \\serverhostname\sharename\myscript.vbs But this has to be done in IP specification : \\10.0.0.1\sharename\myscript.vbs IF this is the case i get an access denied when running by service (localsystem user) IF i change the service credentials to my Administrator account it works (but not interactive, i can't run an updatescript with messagebox) Anyone knows what permissions to give to my 'sharename' share so that localsystem can access it?
The weird thing: While using \\hostname\share\script.vbs the localsystem user can start, but \\0.0.0.0\share\script NOT???? note : on the share are persions: "Everyone - Full Control" including subfolders. Help is much appreciated