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. Sound interface not show up.

    in Windows 10 Drivers and Hardware
    Sound interface not show up.: When turning up or down the volume, there usually shown an interface that tells the sound level 0-100 and the song playing at that moment. But now it has gone for no reason, so I want it back. [ATTACH] This one [Move from Thai]...
  3. Sound interface not show up.

    in Windows 10 Drivers and Hardware
    Sound interface not show up.: When turning up or down the volume, there usually shown an interface that tells the sound level 0-100 and the song playing at that moment. But now it has gone for no reason, so I want it back....
  4. 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...
  5. Interface Problem

    in Windows 10 Customization
    Interface Problem: Ever since being forced to use office 365, I have been getting headaches on a regular basis. One source of the headaches would be the jumpiness and constant movements on the screen. Hovering over objects with the mouse can cause certain things to be hi-lited and windows to...
  6. USB interface

    in Windows 10 Drivers and Hardware
    USB interface: Windows 10 up to date with vers 1803. Will interface with USB memory sticks and other external devices but has now stopped interfacing with mobiles phones, Huawe and Samsung, when plugged into any USB port....
  7. SN500 SSD - Dashboard software shows different interface speed

    in Windows 10 Drivers and Hardware
    SN500 SSD - Dashboard software shows different interface speed: Dear all,I purchased a brand new SN500 500GB SSD for my Lenovo V310-15isk laptop which supports M.2 SSD with PCIe 3.0 x2. Then I installed onto the SN500 the new Windows 10 1903 Pro x64 with a clean install (UEFI USB drive used, format NTFS via Rufus). However, I notice that...
  8. netsh portproxy bug; allows connection from wrong interface

    in Windows 10 Network and Sharing
    netsh portproxy bug; allows connection from wrong interface: I have a network setup with a primary network adapter with 192.168.173.X/24 which is the internal network. I also have a Microsoft KM-TEST Loopback Adapter with (PUBLICIP)/24 on it. So the only way I can connect to PUBLICIP is by connecting from the interface that is...
  9. Scan Interface

    in AntiVirus, Firewalls and System Security
    Scan Interface: We now know that Windows Security has improved tremendously its on a par with third party software., 100% time after time what more do we want. (Satya Nadella and Redmond thanks boys and girls ) However could Developers please do something about the Scan Icon Interface its...
  10. GUI interface

    in Windows 10 Network and Sharing
    GUI interface: i can not access any routers switches that use a GUI interface , say 192.168.1.1 yet i can ping them fine and or use a network utility to talk to them , but can not get to them from ie or chrome or edge or any browser...