Markus Wetzel
2010-01-18 11:53:06 UTC
Hi,
after booting my w2k3 server I have to restart a service (OpenVPN) in
order to have it working correctly. I don't know if this is an issue
with the OpenVPN config but for now I would like to have a script that
automatically restarts the OpenVPN service ~5 minutes after the system
startup.
I wrote a little batch file (c:\temp\openvpnrestart.bat) with sleep and
net stop/start commands and created a new scheduled task that should
start while starting the system (with user "Administrator"). But it
seems that the script does not work properly while beeing started by a
scheduled task. Starting it manually works perfectly.
How am I able to automatically restart a service ~5 minutes after system
and service startup?
Kind regards,
Markus
after booting my w2k3 server I have to restart a service (OpenVPN) in
order to have it working correctly. I don't know if this is an issue
with the OpenVPN config but for now I would like to have a script that
automatically restarts the OpenVPN service ~5 minutes after the system
startup.
I wrote a little batch file (c:\temp\openvpnrestart.bat) with sleep and
net stop/start commands and created a new scheduled task that should
start while starting the system (with user "Administrator"). But it
seems that the script does not work properly while beeing started by a
scheduled task. Starting it manually works perfectly.
How am I able to automatically restart a service ~5 minutes after system
and service startup?
Kind regards,
Markus