First choice:
Windows Server 2003 Resource Kit Tools:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
Or the script (if it works):
set LOGFILE=jrun_Service.log
sc \\SERVER query spooler > LOGFILE
grep "STOPPED" LOGFILE
if not errorlevel 1 goto error
:error
net send admin SERVICE on SERVER stopped, restarting
sc \\SERVER start SERVICE
now >> POP3_service.err
echo SERVICE on SERVER stopped, restarting >> SERVER.ERR
end
Change the below variables in the script:
SERVER = The server with the POP3 Service - 3 locations in script to change
SERVICE - Name of the service to check/start - 2 locations in script to change
Save the above as a cmd file and schedule a task in schedule task to launch every hour (or thrity minutes)
.......................................
Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.