Powershell Temp

Get-NetRoute | Where-Object { $_.DestinationPrefix -match ‘^(10\.|172\.16|192\.168)’ } | Format-Table DestinationPrefix, NextHop, InterfaceAlias

Get-NetRoute -DestinationPrefix “0.0.0.0/0” | Format-Table DestinationPrefix, NextHop, InterfaceAlias, RouteMetric

Test-NetConnection -ComputerName 10.1.1.1 # test a corp/private resource
Test-NetConnection -ComputerName 8.8.8.8 # test Google DNS (public)

Get-NetRoute | Where-Object { $_.InterfaceAlias -like “*Cisco*” } | Format-Table DestinationPrefix, NextHop

Get-NetRoute | Where-Object {
$_.DestinationPrefix -match ‘^10\.|^172\.(1[6-9]|2[0-9]|3[0-1])\.|^192\.168\.’
} | Format-Table DestinationPrefix, NextHop, InterfaceAlias

Get-NetRoute | Where-Object { $_.DestinationPrefix -in @(“10.0.0.0/8″,”172.16.0.0/12″,”192.168.0.0/16”) } | Format-Table DestinationPrefix,NextHop,InterfaceAlias