# Active IPv4 default route (lowest effective metric wins)
$def = Get-NetRoute -DestinationPrefix “0.0.0.0/0” -AddressFamily IPv4 | Sort-Object -Property RouteMetric, IfMetric | Select-Object -First 1

# Show the interface it uses
$iface = Get-NetIPInterface -InterfaceIndex $def.IfIndex -AddressFamily IPv4
$adapter = Get-NetAdapter -InterfaceIndex $def.IfIndex

$def | Format-List DestinationPrefix, NextHop, RouteMetric, IfMetric, IfIndex
$iface | Format-List InterfaceAlias, AddressFamily, InterfaceMetric, ConnectionState
$adapter | Format-List Name, InterfaceDescription, Status, IfIndex, MacAddress

# Show the gateway that owns your default route
Get-NetRoute -DestinationPrefix “0.0.0.0/0” | Select-Object DestinationPrefix, NextHop, InterfaceAlias

# See your NIC’s gateway (usually matches the NextHop)
Get-NetIPConfiguration | Select-Object InterfaceAlias, IPv4DefaultGateway