Start by opening the config file that you want to save the username & password for.

I have used WordPad to edit the files in this how-to.

You can find the config files in the following folder: C:\Program Files\OpenVPN\config\

Edit the last line of the file and add a filename, I’ve used the filename password.txt:

Before editing the config file:

The config file should look like this after you have edited it:

Save the file. (Repeat this for all VPN servers that you want to save the username/password for)

Now create a new file with your username on the first line and your password on the second line:

Save the file as password.txt in your OpenVPN config dir (C:\Program Files\OpenVPN\config\).

You can now connect to the VPN without entering the username & password each time you need to connect.