I have a windows service app that I want to run on one of my servers. I do not have a source code, only an executable.
The service runs as expected while launched in Run as administrator
mode. However we can not grant it administrator rights. We want to designate it a dedicated user with priviliges limited to only what's necessary.
When service is started with credentials of non-administrator user it fails with a following error:
Moreover I found a log with such a message:
Failed to start service manager: The service process could not connect to the service controller
After some research I found out that this error scenario occurs while someone is developing a windows service and doesn't add the url via netsh
command. I was not able to figure out what was the port and url. *
I will welcome any advice.
* I tried netstat
command and looked for a port connected to a service process id.