This script is used to Restarts a service if it is in an error state or stopped.
Run the script as system user.
Note: Provide the service name in the first line of the script. service_name=r'xxxxx' # Give the exact service name.
For example: service_name=r'SNMPTRAP' . Provide the service name which is available in the properties of the respective service.
Comments