OpenVPN v2.5.8 / OpenVPN GUI v11.31.0.0 on Windows 10 Pro 64-bit.
I'm referring to the .BAT scripts that automatically execute when placed in the config folder and named connection_name_up.bat and connection_name_down.bat respectively. I'm using those scripts to map/unmap a network drive to a remote share automatically whenever I connect to my office VPN. Before the latest upgrade, those scripts worked perfectly. They still seem to run, and run without error, as the VPN Connection does not fail, and I see the message Running Connect Script as OpenVPN GUI is connecting. But the drive does not get mapped, at least, not to my login session. What I suspect is happening is that the account OpenVPN is running under is getting the drive mapped to its session, rather than it being mapped to my session, like it used to. I did this upgrade because the OpenVPN server at work was upgraded, and my old configuration settings were no longer functional. The server generates an install executable that also installs the client config with the correct settings. When I ran the executable, I right-clicked and selected Run as Administrator. Could that have caused the problem?
Up and Down batch files no longer working correctly
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Feb 16, 2016 5:12 am
-
- OpenVpn Newbie
- Posts: 2
- Joined: Tue Feb 16, 2016 5:12 am
Re: Up and Down batch files no longer working correctly
Okay, it was due to running the setup executable as Administrator. I uninstalled and reinstalled without choosing Run as Administrator and everything is working fine again.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Oct 18, 2023 11:58 am
Re: Up and Down batch files no longer working correctly
I managed to solve one workstation this way, but this solution does not work on the other.
Both workstations have a user with administrator rights. The machines are not in the domain.
Both workstations have a user with administrator rights. The machines are not in the domain.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Oct 25, 2024 12:32 am
Re: Up and Down batch files no longer working correctly
I have similar problems