Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Access denied while accessing network share as localsystem

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59959
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Access denied while accessing network share as localsystem - 5/7/2008 6:34:09 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
Hi everyone,

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

_____________________________

blah?
 
 
Post #: 1
 
 RE: Access denied while accessing network share as loca... - 5/7/2008 7:06:12 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
Now tried to start cmd.exe when starting service.

when working in cmd (running as system) i can make an connection to the servername, and its complaing password incorrect.

NEed to search a way to give local system account access to network shares.

(in reply to djredmar)
 
 
Post #: 2
 
 RE: Access denied while accessing network share as loca... - 5/7/2008 9:26:32 PM   
  djredmar

 

Posts: 42
Score: 0
Joined: 12/11/2006
From: Europe, The Netherlands
Status: offline
NEver mind,

Solved it by pointing the service to an local script which makes an connection based on the guest account :)

(in reply to djredmar)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Access denied while accessing network share as localsystem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts