I'm trying to use a bat file to run when the user connects to the VPN.
I've been testing on my own ovpn file.
Added this two lines to it:
Code: Select all
script-security 2
up "C:\\Temp\\OpenVPN.bat"Code: Select all
net use * /delete /y
net use P: \\srvad\folder1
net use S: \\srvad\folder2
net use T: \\srvad\folder3
net use V: \\srvad\folder4
net use Z: \\srvad\folder5I've used that commands without configuring the bat file and after the connection, it works fine.
My friend tried the same bat file on version 2.4.9 and it works as expected.
