Forum Discussion
jorgeglez
Oct 02, 2020Copper Contributor
embed a username and password when configuring a VPN with PowerShell
Hello, good morning community,
Is there a way to embed a username and password when configuring a VPN with PowerShell?
I am using the command
Add-VpnConnection
In this case, I dont want to use UseWinlogonCredential as I need to use a service user to authenticate to the VPN.
I hope you can help me.
thanks
1 Reply
- VirgilAwesomeCopper Contributor
Employ the Set-VpnConnection command with the -SplitTunneling $true parameter, and utilise the rasdial command with the /phonebook parameter to embed credentials.