how to monitor windows vpn connectivity?

Solution 1:

Performance Monitor (perfmon.exe) is great for monitoring in windows.

Run perfmon.exe and click the plus button to add the counters that you want to monitor. Depending on your VPN, you probably want the IPsec counters. Add everything that says IPsec in the name, then watch the live graph to determine the interesting counters for your setup. From there you can use the Data Collector Sets to set up logging of your counters.

As for determining the why of connectivity issues, you can use Event Viewer eventvwr.exe for that. Just look for the time of the drop from perfmon, and there will be a few events in the Application and/or System logs at that time.