I'm running a windows service in a server and I now I want it to restart it from a local machine by a software tool I developed by C#.
I tried using "sc" but it says "The service is not installed" and I think it is because it is actually not a windows default service but a custom one.
Could anyone help me out with how to do it?
P.S. sc also said I don't have enough privilege because the service is running under administrative privilege in the server.
Thanks in advance!