Local System Account in Windows Service

  • Thread starter Thread starter Pawan
  • Start date Start date
P

Pawan

Hi All,
I have written a Windows Service which runs a batch file.
Now this file contains command to run executables ....
ie. If the bat file contains ... start notepad ....
start notepad ....

and upon execution on this windows service .... it
actually runs 2 notepad applications ... Just a reminder
that the service is running under Local System Account
policy with 'Interaction with Desktop' set to true
(checked)


Now if I have a case in which the batch file contains
command to execute
some executable from shared network drive ..
I ll get clearer ... Lets say I map a drive M (using user
account x) to
shared drive on server1 ... which contains executable
MYNOTEPAD.EXE ..
M: myfolder on 'server1'


now if i change my batch file to ...
M:
cd\myfolder
start M:\myfolder\MYNOTEPAD.exe

Now when the bat file is executed from my windows service,
the console window comes up .. trys to executes
mynotepad.exe .. it reports "access denied" :(.
Any idea how can I give extra rights to Local System
Account so that it have priviledge to run exes from mapped
drives as well ...


Pawan
 
You can't do that
The LocalSystem account doesn't have network access
and there is nothing you can do about it

/claes
 
Back
Top