Avatar of kmumm111
kmumm111
 asked on

How to execute a logon script after VPN connects

I have been fighting how to add static routes to a VPN connection automatically.  I finally found the answer by motifying the script from the solution here https://www.experts-exchange.com/questions/22594402/Add-a-default-route-to-VPN-connection.html?anchorAnswerId=19160532#a19160532

Now I am wondering if there is anyway to make the script execute automatically after connecting and not be a login script.
VPNWindows Server 2003

Avatar of undefined
Last Comment
merowinger

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
merowinger

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
kmumm111

ASKER
Ok so I need Visual Basic right?
merowinger

you can also take vbscript (a .vbs file)
So there's no vb enviornment required!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23