has anyone gotten this to work?here’s what i have so far in PowerShell:
Add-VpnConnection -Name $VpnName -ServerAddress $svraddr -TunnelType L2tp -AuthenticationMethod MSChapv2 -EncryptionLevel Optional -L2tpPsk $psk -PassThru -Force -AllUserConnection -SplitTunneling -RememberCredential
(edit: the $vars aren’t included but they hold the correct info)if i set it up using windows 10 “add vpn connection” it works fine. when i try to create it in Powershell, it will ask for a user/pass but it will sit at “connecting”.
ive circled back around a few times through google hoping i could get something to work… I’m hoping someone here has something i missed?
Probably the wrong sub to ask for PowerShell help. 
I don’t have any L2TP VPN severs to connect to from Windows so I can’t test, but the PowerShell command looks right.
Maybe use the Get-VpnConnection cmdlet to see the config after you create it in the GUI then compare to the output of your command since you’re using the -Passthru switch when creating a new connection. See if anything is different and adjust if needed.
Hello! Thanks for posting on r/Ubiquiti!
This subreddit is here to provide unofficial technical support to people who use or want to dive into the world of Ubiquiti products. If you can be of help to the OP, please don’t hesitate to offer up advice or suggestions.
Please read and understand the rules in the sidebar, as posts and comments that violate them will be removed. If you see people spreading misinformation, trying to mislead others, or other inappropriate behavior, please report it!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.