Answer the question
In order to leave comments, you need to log in
How to control the creation of routes based on classes through powershell?
Good afternoon. I'm using powershell to create VPN connections for users.
You can uncheck the default route using SplitTunneling, but what about class-based routes?
Add-VpnConnection -Name $VPNServer -ServerAddress $VPNServer -AuthenticationMethod Eap -RememberCredential -SplitTunneling -TunnelType Ikev2 -PassThru
Add-VpnConnectionRoute -ConnectionName $VPNServer -DestinationPrefix 10.10.20.0/24 -PassThru
Answer the question
In order to leave comments, you need to log in
what to do with routes based on classes?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question