Answer the question
In order to leave comments, you need to log in
How to make a trigger task to turn on the VPN on an event in the log about a successful connection to the LAN?
Hello connoisseurs!
There is Windows 7, it is connected to the Internet as follows: the provider's twisted pair cable directly into the network card (without a router), and then Internet access rises through the VPN L2TP connection (this is Beeline's home internet).
Through the Windows task scheduler, I made a task to launch a VPN L2TP connection every time the computer is turned on (rasdial.exe), but in addition to this, in the same task there is another launch trigger, according to which VPN L2TP is also raised when the hibernation is exited (after "hibernation" VPN of course is always cut off). I did this by tracking the event in the WIndows log, and specifically in the Microsoft-Windows-Diagnostics-Performance event code 300.
But there is another task that I want to implement:
Sometimes the connection over the provider's LAN falls off ... "Unidentified network" and others like it, and the VPN, of course, flies after it. Of course, redialing the number 99 times with an interval of 10 minutes is excellent, but the obsessive time countdown window interferes.
Therefore, I would like to add another trigger to the VPN L2TP launch task, which would track, for example: the inclusion of a specific LAN connection, or even better, the successful assignment of the LAN IP address / network status.
Question:
From which log can this be pulled out and what event codes are provided for this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question