Security Help Please

  • Thread starter Thread starter Nick Bunton
  • Start date Start date
N

Nick Bunton

I have built a C# Win Form app which uses the
System.ServiceController namespace to control NT Services
running locally or on a server on the LAN. I am using
this to control two service on the PDC, this works fine
from a desktop when using admin rights, but throws a
security exception when running on a standard user rights
account. I seem to think I can use the
ServiceControllerPermission class to overcome this, is
this tru and if so can anyone give me an example or some
help with this?

Thanks

Nick
 
[This is not WinForm related, please use another group for further
assistance.]

Logging in as the standard user, are you able to control the two services
using "net start" / "net stop"? If not, you won't be able to control them
in WinForm application, either.

You may seek help from one of the microsoft.public.windowsnt groups to find
how to configure a service to allow a standard user to control it.

Hope this helps.

Regards,
Xin

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? Visit http://windowsupdate.microsoft.com to get the latest
critical updates and service packs available for your computer's Windows
operating system.
 
Back
Top