[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Local System Account in Windows Service

Pawan

8/26/2004 3:56:00 PM

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