Powershell/Windows 10/VPN/VPN-Admin.ps1
2023-07-04 12:59:44 +02:00

5 lines
493 B
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Add-VpnConnection -Name "VPN_ADMIN_FICHORGA" -ServerAddress "vpn103.fichorga.com" -TunnelType IKEv2 -EncryptionLevel Required -AuthenticationMethod EAP -SplitTunneling -AllUserConnection
Add-VpnConnectionRoute -ConnectionName "VPN_ADMIN_FICHORGA" -DestinationPrefix 10.0.0.0/8 -PassThru
Add-VpnConnectionRoute -ConnectionName "VPN_ADMIN_FICHORGA" -DestinationPrefix 120.0.0.0/8 -PassThru
Add-VpnConnectionRoute -ConnectionName "VPN_ADMIN_FICHORGA" -DestinationPrefix 84.246.219.0/24 PassThru