Error when using --import-profile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khnexu
    Junior Member
    • Jun 2024
    • 1

    Error when using --import-profile

    Hi,

    I hope I'm writing in the right section.

    I need to replace the VPN profile on 50 PCs, all of which are running OpenVPN Connect 3.4.4 So, I created a small script using this function:

    --import-profile=<path-to-the-profile> --name=<display-name> --username=<username> --password=<password>


    I made it like this script to test on a test pc

    @echo off
    cd "C:\Program Files\OpenVPN Connect"
    OpenVPNConnect.exe --import-profile C:\Users\kh\Desktop\1718178747832.ovpn --name=company1 --username=VPN --password=thecode1234
    pause


    When I run the script, I get this error:
    {
    "error": "No value provided for import-profile",
    "status": "error"
    }
    Press any key to continue . . .



    I simply can't figure out where the error lies. I hope someone can help.
    I should mention that the profile works if I add it manually.
  • JosephS
    Junior Member
    • Apr 2024
    • 15

    #2
    Hi.

    The --name= option seems unnecessary in this case.
    Try importing without it.

    With Regards,
    Josephs

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎