Introduction
The OpenVPN GUI offers an alternative connection method to NordVPN on Windows. While it lacks many features compared to our application, it can run via a command-line interface. This guide will walk you through a simple configuration tweak to control it from anywhere via Windows PowerShell or Command Prompt, enabling easier scripting or manual connections without the GUI, similar to a Linux terminal.
Here's what to do
Windows 11, Windows 10, and Windows 8.1
- Using the Windows Search feature, find and select the Control Panel:
- Using the folder search feature, find and click on View advanced system settings:
- Next, select the Environment Variables option:
- In the section System variables, find the
Pathenvironment variable, select it, and click Edit. If thePathenvironment variable does not exist. Click New:
- In the Edit System Variable (or New System Variable) window, click the New button and specify the value of the bin folder in the OpenVPN installation location. By default, it is
C:\Program Files\OpenVPN\bin
- Click OK, and close the remaining windows.
- Open the Command Prompt window (if it was already open, close and reopen it so the update
Pathtakes effect (see the official Microsoft Command Prompt and Windows PowerShell page for guidance), and run this command to check if OpenVPN works:openvpn --version
Windows 7
- From the desktop, right-click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the
Pathenvironment variable and select it. Click Edit. If thePathenvironment variable does not exist, click New. - In the Edit System Variable (or New System Variable) window, click the New button and specify the value of the bin folder in the OpenVPN installation location. By default, it is
C:\Program Files\OpenVPN\bin. Click OK. Close all remaining windows by clicking OK. - Open the Command Prompt window (close and reopen it if it was already open), and run this command to check if OpenVPN works:
openvpn --version