What is the service name and under which account it is running? Can you post here portion of your script where you call these statements? : I've been trying to use the SERVICEGETSTATUS and the SERVICESTOP/START : commands but can not get them to work. I keep getting an error saying : "Error getting service status. Not enough permissions or invalid : service name." The service name is in the command exactly as shown in : the Services listing and I'm in the administrator group on the : workstation. If I try using an invalid service name, I get the correct : error return code, but a valid service name gives me the permissions error : and stops the script. I'm running NT4/SP5 with 24x7(ver2.3.4). Thanks for : any help you can provide!
|