Problem with Process.Start command

  • Thread starter Thread starter hangten
  • Start date Start date
H

hangten

Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol
 
The service should be able to start a process using Process.Start, are you
sure that the service identity has the nessesary privs (ACL) to start the
program?

Willy.
 
The service is started up under a username/password. They do not want
this account to have admin. privs. When you say the necessary privs.
(ACL) what privs do you mean ? What privs. does that account need to
start the program. It has "run as service"
 
Make sure "username" has "Read & Execute" privileges on the executable image
file(.exe, .bat or .cmd file).
I'm also not clear what kind of program you are trying to start from your
service, but if it's a windows program, this won't work (unless SYSTEM is
the service identity and "Can interact with desktop" is set).
Another thing to consider is, once the program runs, it uses the same
identity (and privileges) as the service. I suggest you start the program
from the command line using the same identity as the service. To do this you
can use the "runas" service, just type runas from the cmd prompt to see the
options.
Willy.
 
Back
Top