Passing Environmental variables... windows

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
User avatar
SpongeB0b
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 17, 2017 5:58 am

Passing Environmental variables... windows

Post by SpongeB0b » Sat Aug 17, 2019 6:38 pm

Hi everyone,

I'm trying to use the -client-connect to run a .cmd script

I would like to pass to the script any Environmental variables as for example common_name. but what I tried didn't succed so far

Code: Select all

client-connect script.cmd common_name
Server don't start.

Code: Select all

client-connect 'script.cmd common_name'
I have obviously common_name as value in my script :/ instead of the value of the variable named common_name

Code: Select all

client-connect 'script.cmd' common_name
Server don't start.

Code: Select all

client-connect 'script.cmd'
give me: C:\Users\me\AppData\Local\Temp\\openvpn_cc_7fffe16260c7061t.tmp :?


Any ideas ?

Post Reply