OpenVPN Windows auto-restart
About script / Usage
Sometimes OpenVPN daemon on Windows or even Linux get stuck. One of the not so clean but working solution is to automatically restart the OpenVPN daemon so it will be indefinitely connected. I know that normally OpenVPN daemon tries to automatically reconnect but as I said it does not always works as expected minimally from my own experience.
This documentation is split to two parts. On second part (Script code) you will find a script itself (saved on GitHub) and on the first installation part there are screenshots how to configure it using Windows Scheduler to run script automatically every hour.