StartService Method (SqlService Class)
Attempts to place the service into its started state.
A SqlService Class object that represents the service.
Property Value/Return Value
A uint32 value that specifies one of the following startup states.
Success. The request was accepted.
Not Supported. The request is not supported.
Access Denied. The user did not have appropriate access.
Dependent Services Running. The service cannot be stopped because other services that are running are dependent on it.
Invalid Service Control. The requested control code is not valid, or it is unacceptable to the service.
Service Cannot Accept Control. The requested control code cannot be sent to the service because the state of the service (Win32_BaseService:State) is equal to 0, 1, or 2.
Service Not Active. The service has not been started.
Service Request Timeout. The service did not respond to the start request in a timely fashion.
Unknown Failure. An unknown failure occurred when starting the service.
Path Not Found. The directory path to the service executable was not found.
Service Already Running. The service is already running.
Service Database Locked. The database to add a new service is locked.
Service Dependency Deleted. A dependency on which this service relies has been removed from the system.
Service Dependency Failure. The service failed to find the service needed from a dependent service.
Service Disabled. The service has been disabled from the system.
Service Logon Failed. The service does not have the correct authentication to run on the system.
Service Marked For Deletion. The service is being removed from the system.
Service No Thread. There is no execution thread for the service.
Status Circular Dependency. There are circular dependencies when starting the service.
Status Duplicate Name. There is a service running under the same name.
Status Invalid Name. There are characters that are not valid in the name of the service.
Status Invalid Parameter. Parameters that are not valid have been passed to the service.
Status Invalid Service Account. The account which this service is to run under is not valid, or it lacks the permissions to run the service.
Status Service Exists. The service exists in the database of services available from the system.
Service Already Paused. The service is currently paused in the system.