I am trying to deploy a VPN connection to all our users via Powershell, and am able to deploy the connection, but cannot add any credentials to it. I have been searching over the internet and reddit, but cant seem to find a solution to it.
I currently have this, which adds the connection - the credentials.
This return a parameter not found for ‘user’ . Removing everything from -user to the end of the script makes the script work, but doesn’t add credentials.
Anyone able to help me towards a solution? Thanks in advance for any help.
You can’t just make up your own parameters on the fly like that.
Additionally, cred management isn’t included with the VpnClient module outside -RememberCredential & -UseWinLogonCredential but here’s a link to some people discussing how to get around it, might be what you need. https://stackoverflow.com/questions/35442724/scripting-vpn-credentials
Users should be typing their own credentials. Your question implies that either you know everyone’s password, or the VPN uses the same user/pass for everyone. In both cases, something is horribly wrong and you should not proceed without taking a step back and considering your approach.
thanks for the info. The VPN connection we are trying to use is externally managed. These are the details we have received. I will contact them to see if this is solvable.