OpenVPN 2.6.6 Windows 64bit - script execution problem

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Joci78
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 18, 2023 11:58 am

OpenVPN 2.6.6 Windows 64bit - script execution problem

Post by Joci78 » Wed Oct 18, 2023 12:16 pm

Dear Community,

I have a fresh installation of Windows 10 up to date. The laptop is not a domain member. It has a user with administrator rights. I installed the OpenVPN client version 2.6.6 on it. I have an ovpn file with which I can perfectly connect to the company network. After changing the ovpn file, the connection is unfortunately not established. The changes are as follows:

*
--script-security 2
--up "c:\\szie_installs\\mount.bat"
--down "c:\\szie_installs\\umount.bat"
*

Batch scripts mount and unmount network drives. If I run the batch scripts, they work perfectly. Mount script content:

*
net use k: \\192.168.1.100\kozos /user:abcdefg@teszt.local
net use m: \\192.168.1.100\migration /user:abcdefg@teszt.local
*

I experienced this on another machine as well, but it started working after an OpenVPN reinstall. Reinstallation on this machine unfortunately did not help. What could be causing the problem?

Unfortunately, I cannot copy LOG, because it is not public due to IP addresses.

Post Reply