Forum Discussion

jorgeglez's avatar
jorgeglez
Copper Contributor
Oct 02, 2020

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

  • VirgilAwesome's avatar
    VirgilAwesome
    Copper Contributor

    Employ the Set-VpnConnection command with the -SplitTunneling $true parameter, and utilise the rasdial command with the /phonebook parameter to embed credentials.

     

     

Resources