Re: Windows service Rights question

From: Steve Long (Steve_Noneya_at_NoSpam.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 13:01:20 -0700

Okay, there are processes running on my machine that just happen to also be
Windows services. I didn't write these services. If I open task manager and
try to kill the process, it won't kill it. However, if I go to the Services
Control Panel and stop the service, it kills the process. An example of this
is the McShield.exe service which is the virus checker running on my box. I
can't kill this process but I can stop the service, which kills the process.
I do have admin right on my box they say.

Steve

"Brian Gideon" <briangideon@gmail.com> wrote in message
news:1096573869.159874.226860@k17g2000odb.googlegroups.com...
> Steve,
>
> I read through this several times, but I'm still not confident that I
> understand what you mean. A user with administrative privledges on a
> box will always be able to stop a service via the service control
> manager or kill any process associated with a service on that box.
> Though killing a process associated with service running under a
> different login will require functionality that the task manager does
> not provide, it is always possible. Normal users are unable stop a
> service or kill a process associated with a service. If the process
> associated with a service does not terminate after stopping the service
> in the service control manager then there is a problem with your code.
>
> Brian
>
> Steve Long wrote:
> > In writing a Windows service with .NET, I'm noticing that the process
> for
> > some services can not be killed with specifically stopping the
> service. If
> > you try to kill the process with, say task manager, you get an access
> denied
> > message. I just wrote a test service and I can kill the process for
> this
> > service without actually stopping the service. Can someone tell me
> how to
> > keep the process for my service from being killed without actually
> stopping
> > the service?
> >
> > I appreciate any insight into this thread.
> >
> > Thanks
> > Steve
>



Relevant Pages

  • Re: Adjusting a services "CanStop" on the fly?
    ... I posted this question to the .Net framework, but I will repost in win32 ... >> who is trying to kill the service. ... >> (Via Task Manager) on the fly? ... I know if OnStart throws an exception the starting of the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Cant Remove Mystery Service
    ... Since it is already running even in safe mode, ... go into your task manager and kill it like you said. ... Now since you stopped it running in the task manager, ... it into the folder. ...
    (microsoft.public.windowsxp.general)
  • Re: Task Manager
    ... >Charles wrote: ... >> be able to create a vb program that can 1st kill ... >> task manager. ... >> I want the kill function of the .exe's from the task ...
    (microsoft.public.vb.winapi)
  • Re: Windows service Rights question
    ... Steve ... > process running under the system account from the task manager. ... >> try to kill the process, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Windows service Rights question
    ... manager or kill any process associated with a service on that box. ... in the service control manager then there is a problem with your code. ... Steve Long wrote: ... > you try to kill the process with, say task manager, you get an access ...
    (microsoft.public.dotnet.languages.csharp)

Loading