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.
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.
Comment