We use the following, from an elevated (admin) powershell prompt:
Add-VpnConnection -Name 'VPN Name' -ServerAddress 'vpn.server.address' -TunnelType 'L2TP' -L2TPPSK 'redacted' -Force -DnsSuffix 'if.you.care' -AllUserConnection
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I am trying to create a VPN connection that is available on the Windows 10 Pro logon screen. I've done much Googling and tried the add-vpnconnection method in Powershell but whatever I try the connection is not avaialble on login. Can anyone help?
Thanks,
Gareth.
We use the following, from an elevated (admin) powershell prompt:
Add-VpnConnection -Name 'VPN Name' -ServerAddress 'vpn.server.address' -TunnelType 'L2TP' -L2TPPSK 'redacted' -Force -DnsSuffix 'if.you.care' -AllUserConnection
I am trying to create L2TP/IPSEC with pre-shared key
Authentication is username/password MS-CHAP v2
Command is
Add-VpnConnection -Name TEST -ServerAddress xxx.xxx.xxx.xxx -AllUserConnection $true -SplitTunneling $true -AuthenticationMethod MSChapv2 -TunnelType L2tp -EncryptionLevel Required -PassThru
Hi @Gareth Little ,
Could you lets us know what vpn are you trying to configure. Also what is the authentication mechanism.
Also, can you share the powershell command/script you used to deploy the profile
Regards
Aravinth
Hi Gloria,
Thanks for your reply. I have tried this method but the VPN does not appear on the login screen. I am connected to Azure AD if relevant.
Gareth.
@Gareth Little Hi,
Thank you for posting in Q&A!
Please try the following method to see if it works:
In Network and Sharing Center -> Set Up a New Connection or Network -> Connect to a Workplace -> [Configure as Needed] ->
Check the last box with the shield next to it (Allow other people to use this connection).
Hope you have a nice day : )
Gloria
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
https://learn.microsoft.com/en-us/answers/articles/67444/email-notifications.html