I'm looking for a script that will run in the background that will check to see if the gateway is pingable. If not, it sends a reboot command. shutdown /f
This is for a Windows 2003 server that is continously dropping its network connections due to an issue with an application. This should be a windows batch file. I don't have the time to mess with another language. Something simple enough where I can test by unplugging the network cable and see the process in action. Thank you!
ping servername
if %errorlevel%==1 shutdown /f /r /t 30
will give you a 30 second timer, and force all open apps to close...