Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to install ,start and stop the windows service without admin rights?

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

like image 205
Singaravelan Avatar asked Oct 20 '22 06:10

Singaravelan


2 Answers

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.

like image 125
SilverShadow Avatar answered Oct 22 '22 18:10

SilverShadow


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.

like image 24
CoreTech Avatar answered Oct 22 '22 19:10

CoreTech