Event ID 7040 — Basic Service Operations
Applies To: Windows Server 2008
Service Control Manager transmits control requests to running services and driver services. It also maintains status information about those services, and reports configuration changes and state changes.
Event Details
Product: | Windows Operating System |
ID: | 7040 |
Source: | Service Control Manager |
Version: | 6.0 |
Symbolic Name: | EVENT_SERVICE_START_TYPE_CHANGED |
Message: | The start type of the %1 service was changed from %2 to %3. |
Resolve
Restore the default settings
If there were changes in the service settings (for example, the start up type was changed from Automatic to Manual), the service may be unable to start. To resolve this issue, first restore the default settings of the service and then start the service.
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
Restore the default settings of the service
To restore the default settings of the service:
Open the Services snap-in by clicking the Start button, Control Panel, and Administrative Tools, then double-clicking Services.
Note: For Windows Vista, use the Classic View display option in Control Panel to see the Administration Tools.
In the details pane of the Services snap-in, right-click on the name of the service you want to start and select Properties.
Click the Log On tab and note the account listed under Log On As.
Restore the default settings, if necessary. For a list of the default settings for system services, see https://go.microsoft.com/fwlink/?LinkId=105223. For non-system settings, see the documentation for that product.
Start the service
To start a service:
Open the Services snap-in by clicking the Start button, Control Panel, and Administrative Tools, then double-clicking Services.
Note: For Windows Vista, use the Classic View display option in Control Panel to see the Administration Tools.
In the details pane of the Services snap-in, right-click on the name of the service you want to start and select Start.
Verify
To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.
To verify the state in which a service is operating:
Click the Start button, Run, then type cmd to open a command prompt.
Type sc interrogate service_name (where service_name is the name of the service) at the command prompt to update the status of that service in Service Control Manager.
Type sc qc service_name at the command prompt to display the configuration status of the service.
Type sc queryex service_name at the command prompt to display the extended status of the service. This command will provide the following information about a service: SERVICE_NAME (the service's registry subkey name), TYPE (the type of service, for example, shared process, interactive), STATE (for example, running, paused, and the states that are not available), WIN32_EXIT_CODE (the Windows exit error code), SERVICE_EXIT_CODE (the service exit code), CHECKPOINT, WAIT_HINT (the time period the SCM waits before reporting a service failure), PID (ID of the process running the service), and FLAGS. If the service was started successfully, the WIN32_EXIT_CODE field should contain a zero (0). If the service failed to start when an attempt was made, this field should contain an exit code provided by the service when it could not start.
Type net helpmsg exit_code (where exit_code is the 4 digit number of the error code) at the command prompt to display the meaning of the exit code.
For more information about the sc command, see SC Command Reference Help (https://go.microsoft.com/fwlink/?LinkID=84961). For more information about the net helpmsg command, see https://go.microsoft.com/fwlink/?LinkId=105087.