# note "local.* 1$" is a regex to match network interface of interest netsh interface ipv4 show interfaces | select-string "local.* 1$" | %{($_ -split "s+")[4]}