Windows 10 VPN Trigger Application

scottkh
scottkh used Ask the Experts™
on
I have Windows 10 computer with VPN profile named as VPN1 and an application named app1.exe, located at c:\app\app1.exe.   When the VPN1 profile is clicked, it would connect just fine.

Using Powershell with add-vpntriggerapplication and set up split tunneling with autodisconnect timer, it would work fine.  Then all of suddenly, the vpn wont autotrigger to connected with the app1 is launched.  If the VPN1 is manually connected, it wont disconnect according to the timer.


Wondering how to I get the app to force the vpn connection?

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
So I'm confused. Do you want to persist the VPN connection or force connect/disconnect on timer?

Author

Commented:
Clarification - When the app is launched, a VPN connection is triggered to connect.   This is done with a PS command line, vpnconnectiontriggerapplication.

When the app is exited, the timer would kick in and disconnect the VPN.  (idledisconnectionseconds)

The problem is the vpnconnectiontriggerapplication was working before, suddenly, it stopped working.

Author

Commented:
This page will explain it all.  I have solved my own problem since it is undocumented feature of built in VPN.

https://www.petri.com/auto-triggering-vpns-windows-10

Under the Title Notes from the field

This could be an undocumented feature in Windows 10 or a bug, but probably the former. There is the important caveat in disabling split tunneling: users won’t be able to re-enable auto-triggering of the VPN if a connection is manually disconnected after having been auto-triggered by the application.
Commented:
See my previous post.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial