I am trying to figure out how to stop then start a service from a command prompt on a Windows 2008 server. I am not a domain administrator, but I am a local administrator on the server I am trying to do this on. If I am remoted into the server, and I open a command prompt and type "sc stop <service_name>", I see the following:
C:\>sc stop <service_name>
[SC] OpenService FAILED 5:
Access is denied.
Am I able to use the sc command in this manner? Is there another alternative for stopping then starting a service?