OpenVPNConnect.exe with Powershell

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
RGB-Error
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 29, 2023 12:10 pm

OpenVPNConnect.exe with Powershell

Post by RGB-Error » Tue Aug 29, 2023 12:28 pm

Hello,

i have a issue with the OpenVPNConnect.exe and Powershell.
As long i use the CMD of Windows the output of all commands working fine (example: "OpenVPNConnect.exe --help" or "OpenVPNConnect.exe --lists-certificates")
When I use the Powershell nothing returns or the retun of the exe looks empty. In every case, there is something wrong. Even if i try to put the return value into a variabel an error appears. ($test = OpenVPNConnect.exe --help)

"A JavaScript error occurred in the main porcess"
"Uncaught Exception
Error EPIPE: broken pipe, write ..."


My questions:
- Is this normal and a limitation of the OpenVPN Connect client?
- How is it possible to use Powershell with the return values from OpenVPN Connect?

"build-number": "3150"
"version": "3.4.1"

Thank you for your time an effort.

User avatar
JosephS
OpenVPN Inc.
Posts: 54
Joined: Fri Feb 17, 2023 5:15 pm

Re: OpenVPNConnect.exe with Powershell

Post by JosephS » Fri Sep 08, 2023 6:58 am

Hi RGB-Error,
When I use the Powershell nothing returns or the retun of the exe looks empty.
You are probably running Powershell in admin mode.
Could you try to run the same CLI commands while you have Powershell launched as a non-admin/regular user?

Regards,
JosephS

Post Reply