11.28 StartServices

Use this Knowledge Script to start Windows services in response to an event.

You can specify a number of seconds to wait after initiating the service start command to check the status of the service and make that it was successfully started.

NOTE:If the service you specify has dependent services, enter the names of dependent services after the name of the primary service. For example, SQLServerAgent is a dependent service of MSSQLServer. To start MSSQLServer and its dependent service, specify MSSQLServer,SQLServerAgent for the Service name(s) parameter. In cases with multiple dependent services, specify the least dependent service first and the most dependent service last.

11.28.1 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event if service is successfully started?

Select Yes to raise an event when the services you specify are successfully started. The default is unselected.

Event severity -- Service started

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a service is successfully started. The default is 25 (blue event indicator).

Event severity -- Action Failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the StartServices job fails. The default is 10 (red event indicator).

This Knowledge Script always raises an event when it is unable to start a service.

Severity Configuration

Minimum event severity for Action

Set the minimum severity level, from 1 to 40, for an event that triggers this Action. The default is 1.

Maximum event severity for Action

Set the maximum severity level, from 1 to 40, for an event that triggers this Action. The default is 40.

Action

Service name(s)

Provide a comma-separated list of the services you want to start. You can use the service name or display name listed in the Properties dialog box for the service.

NOTE:If the service you specify has dependent services, enter the names of dependent services after the primary service. For example, SQLServerAgent is a dependent service of MSSQLServer. If you want to start MSSQLServer and all of its dependent services, specify MSSQLServer,SQLServerAgent.

Service start timeout

Set the number of seconds to attempt to start the specified services before timing out. The default is 10.