Don't use service "Display Name" as it appears in the Control Panel because the service display name does not always matches the real service name. Display names for the same service can different on different computers with different language settings while real names don't. For example SNMP service display name is "SNMP Service" while the real service name is "SNMP" ServiceStart and ServiceStop support real service names only. You can look up real service names in the system registry under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services" key. : Hi, : I'm trying to run the JAL statements : ServiceStart and ServiceStop. : I get an error not enough permissions : or invalid service name. : I can start and stop the service from : Administrative Tools\Services as my user : without problems. : I'm sure it's spelt right as well. I'm using : the telnet service for testing. : Is there something obvious I might be missing. : Con.
|