Windows Service to be started/Stopped by an App running asInvoker

时间:2015-07-28 23:08:28

标签: c# windows service

I have a Windows service(C#) which will be kicked off by an app(.exe). Since we need Admin privileges to start/Stop/Query status of the service. we are running this app in Admin mode.

But, we want to make it to run in 'asInvoker' mode. thus made me think of possibility of start/stop or query status of the Windows Service from an app(.exe) running in asInvoker(Basically non-Admin) Mode. Is it possible to tweak the windows service that way?

Any other constructive solutions are most welcome.

0 个答案:

没有答案