Connect OpenVPN on Windows startup.: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
if you wish all users should use VPN. If only a certain user shall auto connect then place the shortcut in | if you wish all users should use VPN. If only a certain user shall auto connect then place the shortcut in | ||
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | ||
Press the '''Windows logo key + R''', type '''shell:startup''', then select OK. This opens the Startup folder for current logged on user. | |||
'''NOTE:''' the ''myprofile.ovpn'' file must be available in the folder | '''NOTE:''' the ''myprofile.ovpn'' file must be available in the folder | ||
C:\Users\[Username]\OpenVPN\config\ | C:\Users\[Username]\OpenVPN\config\ | ||
This works on Windows 10. | |||
[[Category:Windows]] | [[Category:Windows]] |
Latest revision as of 06:40, 13 October 2021
Adding the following parameter to the "Destination" in a shortcut to opennvpn-gui.exe will make it automatically connect to myprofile.ovpn on startup, and show the classic GUI icon.:
"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect myprofile.ovpn
Place this shortcut in the All Users Startup Folder
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
if you wish all users should use VPN. If only a certain user shall auto connect then place the shortcut in
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Press the Windows logo key + R, type shell:startup, then select OK. This opens the Startup folder for current logged on user.
NOTE: the myprofile.ovpn file must be available in the folder
C:\Users\[Username]\OpenVPN\config\
This works on Windows 10.