FG
💻 Software

Automatically restart Windows service if it is not running

Fresh7 days ago
Mar 15, 202642383 views
Confidence Score0%
0%

Problem

I have a windows service running on a Windows 2003 server. Under the properties option when you right click the service, there is an option to restart the service if it fails. The options available are for the first, second and any subsequent failures. I tried to use this option to restart the serv…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Automatically restart Windows service if it is not running

Low Risk

For a misbehaving service like that, I'd create a small script that checks if it's running and starts it if it isn't. Then I'd use scheduled tasks to run the script every 5 minutes or so. Example script (checks for the spooler service):

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment