VPNCMD.exe connect to server with password
Posted: Wed Apr 26, 2017 4:21 pm
I'm having a problem figuring out how to write a script using VPNCMD to connect to a Softether server with a password.
If I use certificates then the following line works fine:
vpncmd.exe /CLIENT localhost /CMD AccountConnect Server-VPN-Name
But for passwords I would like the script to request the password first and then provide it along with the connect command above. How do I use vpncmd.exe to provide a password when connecting? I've looked at the documentation but it is not clear to me what I should do.
BTW this is in Win 7 Pro.
Using the SoftEtherGUI works fine, I can enter the password and it connects - but I'd really prefer that my users NOT see the GUI - especially since they could save the password for next time. I want them to always have to enter their password.
Thanks,
Marc
If I use certificates then the following line works fine:
vpncmd.exe /CLIENT localhost /CMD AccountConnect Server-VPN-Name
But for passwords I would like the script to request the password first and then provide it along with the connect command above. How do I use vpncmd.exe to provide a password when connecting? I've looked at the documentation but it is not clear to me what I should do.
BTW this is in Win 7 Pro.
Using the SoftEtherGUI works fine, I can enter the password and it connects - but I'd really prefer that my users NOT see the GUI - especially since they could save the password for next time. I want them to always have to enter their password.
Thanks,
Marc