Windows service starts and stops without administrator privileges

How to start and stop working with a window without administrator rights?

My application launch should start my service in the same way that it should stop as soon as it is closed. I can do this with the "Service Controller"

I can install the service with administrator privileges, but you should not ask for administrator privileges to start and stop the service.

Can someone tell me how can I do this using C #?

+5
source share
1 answer

/ , . , / . .

1:

  • "mmc.exe"
  • .
  • , .
  • ( )

, , admin. , . . 2

2:      "Subinacl.exe", SubInACL - , , , , .

SUBINACL/SERVICE\DomainName\MyService/GRANT = DomainName\USERS = TOP, / .

+3

All Articles