list of Add-VpnConnectionRoute

Farhad N 1 Reputation point
2020-07-07T13:18:46.62+00:00

Hi

I am using windows 10
I used below commands for add routes automatically when I connected to "Work" VPN connection

Add-VpnConnectionRoute -ConnectionName "Work" -DestinationPrefix 172.0.0.0/8
Add-VpnConnectionRoute -ConnectionName "Work" -DestinationPrefix 182.0.0.0/8

now I want to check all of my lists using this feature
and then I can add or remove one of them

can you please help me with this situation?

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,394 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2020-07-28T23:14:46.113+00:00

    My apologies for the delay, we are working to catch up to unanswered threads, and get future threads answered faster.

    There is not currently a direct cmdlet to list the routes associated with a connection, but you can get the connection and list the routes associated with it:

    $conn = = get-vpnconnection -ConnectionName "your connection name here"
    $conn.routes
    

    Now that you can see the routes, you can remove them with the Remove-VpnConnectionRoute cmdlet

    7 people found this answer helpful.
    0 comments No comments

  2. Farhad N 1 Reputation point
    2020-07-08T08:27:24.633+00:00

    Does anybody know about that?

    0 comments No comments

  3. Farhad N 1 Reputation point
    2020-07-18T07:49:24.607+00:00

    no one can help me with this situation?

    0 comments No comments

  4. Farhad N 1 Reputation point
    2020-07-25T07:58:00.53+00:00

    what a pooooor supporting, it is awful

    0 comments No comments