I need to restart a windows 2008 server only if the gatwaay is not responding. Is there a way to conditionally ping the gateway and if the gateway is not reachable a restart is triggered?
It might be a better option to contact the firewall vendor to see what you can't do to get those services started with out a reboot (seriously though). But to do what you're asking, you could try running this batch script, have it start up with Task Scheduler on reboot. You could either loop it with the "goto start" option listed. Or remove that and just have Task Scheduler run it every 5 minutes.