Connecting to a OpenVPN server from a restricted Windows user is difficult. If you want to do it once you can do it by the Run As link by Right clicking on the OpenVPN gui shortcut from your desktop. But if you don’t want to give your users the Admin Password better follow this steps :
First download this file CPAU. (Pls rename it from CPAU.doc to CPAU.exe) While logged into the user account copy CPAU.exe to the bin folder usually “C:\Program Files\OpenVPN\bin”. Then open a command prompt and go to the bin directory and execute this command “CPAU.exe -u <administrator user> -p <administrator password> -enc -hide -file OpenVPN.cpau -ex openvpn-gui.exe” Please be careful about one thing that your OpenVPN exe file name may differ like in my case its “openvpn-gui-1.0.3.exe” not “openvpn-gui.exe”.
Then on the users desktop created a OpenVPN.cmd file with this line “”C:\Program Files\openvpn\bin\CPAU.exe” -lwop -dec -file “C:\Program Files\openvpn\bin\OpenVPN.cpau” and Save the file. Please ask the user to start OpenVPN with this .cmd file and not with the Shortcut that is in his desktop. Now everytime you run OpenVPN from this .cmd file it will run with Administrative Privilege and hence it will not have problem to add the routes.
Recent Comments