VPN Cmds

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Add-VpnConnection -Name "NEXVPN" -ServerAddress 203.177.169.

3 -TunnelType Ikev2
Set-VpnConnectionIPsecConfiguration -ConnectionName "NEXVPN"
-AuthenticationTransformConstants None -CipherTransformConstants DES3
-EncryptionMethod DES3 -IntegrityCheckMethod MD5 -PfsGroup None -DHGroup Group2
-PassThru -Force

Add-VpnConnection -Name "Test4" -ServerAddress "203.177.169.3" -TunnelType L2tp


-EncryptionLevel Required -AuthenticationMethod MSCHAPv2 -SplitTunneling
-AllUserConnection -L2tpPsk "ZtdH3Xqtw9zF2QTc" -Force -RememberCredential -PassThru
Set-VpnConnectionIPsecConfiguration -ConnectionName "Test4"
-AuthenticationTransformConstants None -CipherTransformConstants AES128
-EncryptionMethod AES128 -IntegrityCheckMethod SHA256 -PfsGroup None -DHGroup
Group14 -PassThru -Force

https://msdn.microsoft.com/en-us/library/windows/desktop/bb530704(v=vs.85).aspx
https://docs.microsoft.com/en-us/powershell/module/vpnclient/?view=winserver2012r2-
ps
https://docs.microsoft.com/en-us/powershell/module/vpnclient/get-vpnconnection?
view=winserver2012r2-ps
https://www.google.com/search?source=hp&ei=yyPrWoz4Ocv_vgTLwoDIBw&q=Set-
VpnConnectionIPsecConfiguration+help&oq=Set-
VpnConnectionIPsecConfiguration+help&gs_l=psy-
ab.3...1578.6324.0.6934.6.6.0.0.0.0.154.634.0j5.5.0....0...1.2.64.psy-
ab..1.4.524...0j0i30k1j0i10i30k1j33i160k1.0.tCjN_d_y3Rg

Add-VpnConnection -Name "Test5" -ServerAddress "203.177.169.3" -TunnelType L2tp


-EncryptionLevel Required -AuthenticationMethod MSCHAPv2 -SplitTunneling
-AllUserConnection -L2tpPsk "ZtdH3Xqtw9zF2QTc" -Force -RememberCredential -PassThru
Set-VpnConnectionIPsecConfiguration -ConnectionName "Test4"
-AuthenticationTransformConstants None -CipherTransformConstants AES128
-EncryptionMethod AES128 -IntegrityCheckMethod SHA256 -PfsGroup None -DHGroup
Group14 -PassThru -Force

You might also like