I have a same problem like reference problem link but it is in c++ I want in c#
I have created a windows service using visual studio 2010 (C#). It working fine. And I created windows application to start that service. The problem is , it require admin rights. I want to start and stop the particular windows service without admin rights.
is it possible. This link not suitable for me. this link all computer may not have iis.
Thanks in advance
it is not possible to start a service if the non-administrator user does not have the proper privileges. you can't circumvent the permissions with some kind of crack that breaks the security model of Windows.
Yes, it is possible for a non-admin user to start or stop a service, but only after that user has been granted that right by an administrator.
You can use command line tools like SC or SUBINACL to grant a user specific rights to a service but the free Service Security Editor provides a much friendlier, point-and-click GUI interface.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With