Windows 10: Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same...

Discus and support Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same... in Windows 10 Network and Sharing to solve the problem; Hi, We're performing an Always On VPN project, and have an issue with DNS resolution. In general we want the AOVPN interface to have a lower metric... Discussion in 'Windows 10 Network and Sharing' started by D_Goossens, Apr 21, 2021.

  1. Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same...


    Hi,

    We're performing an Always On VPN project, and have an issue with DNS resolution.
    In general we want the AOVPN interface to have a lower metric then the wired NIC.
    THe DNS gets chosen, based on the interface with the lowest metric.

    We're using a script from Richard Hicks to change the metric of the AOVPN interface.
    https://github.com/richardhicks/aovpn/blob/master/Update-Rasphone.ps1
    It does get set correctly, and is being changed in the rasphone.pbk file located in : "C:\ProgramData\Microsoft\Network\Connections\"
    we're installing it for all users, hence the location of the file.

    So far, so good.. Everything seems to get adapted correctly verified metric on GUI interface too, and it shows the changed metric.

    However when a client connects via VPN, they still get the ISP DNS server via wired interface to respond instead of the internal DNS server.
    Lowering the metric of the AOVPN interface, should have forced this DNS to be used.

    Now for the question :

    When checking the metric of the connections via "netsh interface ipv4 show interfaces", the metric is correct we see the changed one

    When checking via Get-NetIPInterface, the old value is still shown, valued 25, which is automatic. This is the metric being used, and the one queried with netsh is being ignored.

    DOes anyone know why there is a difference in both ways to query them?

    :)
     
    D_Goossens, Apr 21, 2021
    #1

  2. NETSH Command Not Returning Expected Results

    We have a problem where our vendor is doing some network verification using NETSH. They need to query a specific adapter named "_Backnet"

    They are running: NETSH interface ip show dns "_BackNet" and they get no result."

    However, if they run a shortened version: netsh interface ip show DNS, the_backnet interface is listed as below:

    C:\Windows\system32>netsh interface ip show dns "_BackNet"

    C:\Windows\system32>netsh interface ip show dns

    Configuration for interface "_FrontNet-HB"

    Statically Configured DNS Servers: None

    Register with which suffix: None

    Configuration for interface "_BackNet"

    Statically Configured DNS Servers: ###.###.###.###

    ###.###.###.###

    Register with which suffix: Primary only

    Configuration for interface "Local Area Connection* 11"

    Statically Configured DNS Servers: None

    Register with which suffix: None

    Configuration for interface "Loopback Pseudo-Interface 1"

    Statically Configured DNS Servers: None

    Register with which suffix: None

    Can anybody help us out here? It is considered a "Blocker" by our vendor as it is part of their overall validation process and the install it attempts fails if the command does not find the adapter.

    Thanks, in advance for putting your grey matter to the test on this. This is for Server 2008.

    John M
     
    JohnMohler1, Apr 21, 2021
    #2
  3. netsh wlan show interface shows channel 0?

    When using the Netsh WLAN Show Interface command, it intermittently shows that the channel in uses is channel 0 though that is not a valid channel in either the 5ghz or 2.4ghz bands. Why is doing this? Note that in my case the clients are connected via
    5ghz and the channel being used by the Access Point the client is connected to is a valid 5ghz channel.
     
    MidlanderNC, Apr 21, 2021
    #3
  4. eddward Win User

    Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same...

    How to rename network interfaces


    Hi,
    I've got a new DSL router and configured it with the same settings as previous.

    I already tried and successfuly renamed Network Adapters as they were before, it is now Ethernet and Wi-Fi but it is still not enough. netsh interface show interface command still saying Ethernet 2 and Wi-Fi 2 after reboot.
    I also tried netsh interface set interface name=”Ethernet 2” newname=”Ethernet” but didn't help
    Any suggestion to fix it ?
    It's not a big deal, but still I would like to have it sorted.

    Thanks
     
    eddward, Apr 21, 2021
    #4
Thema:

Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same...

Loading...
  1. Get-NetIpInterface VS "netsh interface ipv4 show interfaces"... different results on same... - Similar Threads - NetIpInterface netsh interface

  2. Connect to the same wifi with 2 difference wireless interface

    in Windows 10 Gaming
    Connect to the same wifi with 2 difference wireless interface: My PC has two wireless interface cards, one installed into the motherboard antenna poking out of the unit, the other one plugged in with a USB cable. Now in my connections tab I have WiFi and WiFi2 where I can separately select a network to connect. Since both interfaces are...
  3. Connect to the same wifi with 2 difference wireless interface

    in Windows 10 Network and Sharing
    Connect to the same wifi with 2 difference wireless interface: My PC has two wireless interface cards, one installed into the motherboard antenna poking out of the unit, the other one plugged in with a USB cable. Now in my connections tab I have WiFi and WiFi2 where I can separately select a network to connect. Since both interfaces are...
  4. Connect to the same wifi with 2 difference wireless interface

    in Windows 10 Software and Apps
    Connect to the same wifi with 2 difference wireless interface: My PC has two wireless interface cards, one installed into the motherboard antenna poking out of the unit, the other one plugged in with a USB cable. Now in my connections tab I have WiFi and WiFi2 where I can separately select a network to connect. Since both interfaces are...
  5. netsh interface ipv4 add dnsservers does not work on Windows 10

    in Windows 10 Software and Apps
    netsh interface ipv4 add dnsservers does not work on Windows 10: Command to admin-enabled CMD prompt:netsh interface ipv4 add dnsservers name="Ethernet" address=208.067.222.222 index=1gets error message "The parameter is incorrect"As far as I can tell, the syntax is correct. I have tried with and without item names. The instructions...
  6. netsh interface ipv4 add dnsservers does not work on Windows 10

    in Windows 10 Network and Sharing
    netsh interface ipv4 add dnsservers does not work on Windows 10: Command to admin-enabled CMD prompt:netsh interface ipv4 add dnsservers name="Ethernet" address=208.067.222.222 index=1gets error message "The parameter is incorrect"As far as I can tell, the syntax is correct. I have tried with and without item names. The instructions...
  7. netsh interface ipv4 add dnsservers does not work on Windows 10

    in Windows 10 Gaming
    netsh interface ipv4 add dnsservers does not work on Windows 10: Command to admin-enabled CMD prompt:netsh interface ipv4 add dnsservers name="Ethernet" address=208.067.222.222 index=1gets error message "The parameter is incorrect"As far as I can tell, the syntax is correct. I have tried with and without item names. The instructions...
  8. 2 different interfaces in arp -a

    in Windows 10 Software and Apps
    2 different interfaces in arp -a: Hi,I've recently had an unknown device connected on my network which disappeared as soon as it was detected and was looking into arp -a to try to gain some insight on the connections to my network.When I open arp -a I get 2 interfaces. One that shows the MAC-addresses and...
  9. 2 different interfaces in ARP -a

    in Windows 10 Gaming
    2 different interfaces in ARP -a: Hi,I've recently had an unknown device connected on my network which disappeared as soon as it was detectected and was looking into arp -a to try to gain some insight on the connections to my network.When I open arp -a I get 2 interfaces. One that shows the MAC-addresses and...
  10. Different Windows Interface ?

    in Windows 10 Customization
    Different Windows Interface ?: Hi! So whenever I sign in to my account connected to my laptop, a different Windows "interface" is showing me. My desktop becomes like this when all of my data in web browsers are nowhere to be found. I tried to see if there is a problem in my Microsoft account but I find...