Home All Groups Group Topic Archive Search About
Author
14 Sep 2006 6:40 PM
Peter Schmitz
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

Author
15 Sep 2006 9:49 PM
Dave Sexton
Hi Peter,

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

--
Dave Sexton

Show quote
"Peter Schmitz" <PeterSchm***@discussions.microsoft.com> wrote in message news:E4C8C54E-F309-493D-A244-73B6E2755211@microsoft.com...
> 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

AddThis Social Bookmark Button