Configuring Service Recovery
You can configure Windows 200* services to take specific actions when a service fails. For example, you could attempt to restart the service or run an application. To configure recovery options for a service, complete the following steps:
In the Computer Management console, connect to the computer whose services you want to manage.
Expand the Services And Applications node by clicking the plus sign (+) next to it, and then choose Services.
Right-click the service you want to configure and then choose Properties.
Select the Recovery tab.
Note: Windows 200* automatically configures recovery for some critical system services during installation.
You can now configure recovery options for the first, second, and subsequent recovery failures. The available options are
Take No Action
Restart the Service
Run a File
Reboot the Computer
Best Practice When you configure recovery options for critical services, you may want to try to restart the service on the first and second attempts and then reboot the server on the third attempt.
find service name and query for find the settings
>sc qc BDESVC
[SC] QueryServiceConfig SUCCESS
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\windows\System32\svchost.exe -k netsvcs
TAG : 0
DISPLAY_NAME : BitLocker Drive Encryption Service
SERVICE_START_NAME : localSystem
>sc qfailure BDESVC
[SC] QueryServiceConfig2 SUCCESS
RESET_PERIOD (in seconds) : 900
FAILURE_ACTIONS : RESTART — Delay = 60000 milliseconds.
RESTART — Delay = 60000 milliseconds.