Tech Community Live: Windows edition
Jun 05 2024, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community

embed a username and password when configuring a VPN with PowerShell

Copper Contributor

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

0 Replies