Windows 10 VPN Trigger Application

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?

scottkhAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Curtis ShullFounderCommented:
So I'm confused. Do you want to persist the VPN connection or force connect/disconnect on timer?
0
scottkhAuthor 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.
0
scottkhAuthor 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.
0
scottkhAuthor Commented:
See my previous post.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VPN

From novice to tech pro — start learning today.