You can instantiate WScript.Shell and use the Exec command to execute a command line. I believe, when doing commandline, you would do a net stop and net start of the service. So, it MIGHT look something like:
I have created a windows service and I want to write a script to start and stop the service. Above examples do not work for me. Not sure why?
When I try to run the service from command line as an administrator it works fine.
But the shell script does not work for it...