Reputation: 849
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
Upvotes: 5
Views: 6152
Reputation: 2433
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.
Upvotes: 1
Reputation: 85
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.
Upvotes: 2