I think you get an error because you specify "service display name" instead of the actual servide name and as a result ServiceGetStatus cannot find it. You can lookup service names under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services" key in the registry : Hello, : I am trying to get the Status of a service that is running on a cluster. : I know the service is up and running but when I do a ServiceGetStatus it : returns "ERROR" instead of "RUNNING". : Why is this ? Is it because it is a cluster ? : If so, is there another way I can find out if it is running ?
|