I have an IIS web application that is run under an application pool identity. The app needs to stop and start a windows service. Apart from introducing impersonation into the application for stopping and starting the service, is there any other way I can do this?
Note that I am looking for a solution other than running the application pool under a windows user that has the permission to stop and start the service.
You can do this through your app pool if:
1- Your local and/or domain security policies allow a service to stop/start another service.
2- Your app pool identity has the right to do so.
Granting the app pool identity such a right might be a security issue though.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.