Created
September 4, 2018 16:07
-
-
Save zackn9ne/b88f03f33f12769077be794736fafc01 to your computer and use it in GitHub Desktop.
win10 vpn elevated ps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remembercredential will save the first good username/pw credential entered in GUI | |
# put shared key for "insert VPN password" | |
# dnssuffix is like ad.companyname.com but probably dosent matter | |
# type over the brackets with the values and put in quotes only | |
Add-VpnConnection -AllUserConnection -Name "[insert VPN name]" -ServerAddress [insert IP/hostname for VPN] -TunnelType L2tp -DNSSuffix "[insert domain name]" -EncryptionLevel Optional -AuthenticationMethod PAP -L2tpPsk "[insert VPN password]" -Force -PassThru -RememberCredential |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment