Powershell adding L2TP over IPsec VPN

DescriptionThis script adding L2TP over IPsec VPN. Changelog1.0.3 - Edit script formatting. 1.0.2 - Removed Set-ExecutionPolicy cmdlet notice, since everyone has this knowledge already. 1.0.1 - Adds Administrator mode check.Development InformationThis is my first contribution t

1,658 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • custom User
    2 Posts | Last post December 19, 2018
    • Hi, Can a Custom user and password VPN key be automated?
    • Hi Darkjonux,
      Thanks for your question. To automate the password replace line 24 with the code: $psk = "password". In this simplified script you can not use custom user accounts. You can use current logon account in Windows, for that you need to change "-UseWinLogonCredential $false" to "-UseWinLogonCredential $true".