I have a requirement in the project, so we have to stop a specific service, say, “x” on a remote machine (which is on the same local network), remotely delete the registry key and start the service again.
I tried the command sc \server stop servicebut got an error:
[SC] GetServiceKeyName FAILED 1060:
The specified service does not exist as the installed service.
I am using Windows 2003 SP1. Are there any built-in commands or APIs available on Windows?
I need commmand to run on the command line.
santhosh
source
share