Starting process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm currently writing windows .net service (non-interactive) that shall
start a specific program from disk the moment it gets started itself. Now,
when I simply call Process.Start(filename) I receive an AccessDenied error.
So, how can I start a process with the same rights as the service itself the
moment the service starts?

Thanks a lot
Peter
 
Hi Peter,

Your code will be running under the service account. Does the service account have the appropriate permission? (Instead of
NetworkService try LocalService)
 
Back
Top