Page 1 of 1

automatically map a network drive after a successful Openvpn Connect 3.3.1 (2222) client connection in MS Windows 10

Posted: Mon Aug 02, 2021 2:05 pm
by kexaxen
How to automatically map a network drive after a successful Openvpn Connect 3.3.1 (2222) client connection in MS Windows 10 OS?
script-security 2
up profile_name_up.bat
options in .ovpn profile not working.
Thank you.

Re: automatically map a network drive after a successful Openvpn Connect 3.3.1 (2222) client connection in MS Windows 10

Posted: Tue Aug 03, 2021 11:39 am
by 300000
here the way it work , I make it work on openvpn 2.5 and openvpn GUI support script but you can use up command to make it work the same way . it is on both windows 10 and new openvpn 3.0 make it trouble so carefully will make it work as you like.

the trick in here is make the first scripts finish first so openvpn network card have ip address then the first scripts will call other scritp to create network map for you. if you try to make it work on the first scripts it will never do for you.

viewtopic.php?f=8&t=32636