I am trying to create an analysis to list the MTU value of the adapter with the current IP address. The following relevance fails if the system does not have an adapter with the description “Ethernet connection”. Any help would be appreciated.
maximum transmission unit of adapters whose (description of it as lowercase contains “ethernet connection”) of networks
maximum transmission units of adapters whose(up of it) of networks
Then with IPs: (NOT Loopback)
(maximum transmission units of it, concatenations ";" of (it as string) of addresses of it) of adapters whose(up of it AND not loopback of it) of networks
(maximum transmission units of it, concatenations ";" of (it as string) of addresses of it) of adapters whose(up of it AND not loopback of it AND 6 = type of it) of networks
I don’t know a ton about network adapter types.
Returns the interface type of the specified adapter as defined by the Internet Assigned Names Authority (IANA). Possible values for the interface type are listed in the Ipifcons.h header file.
(maximum transmission units of it, concatenations ";" of (it as string) of addresses of it) of adapters whose(up of it AND not loopback of it AND 6 = type of it) of networks
Where:
adapters whose(up of it AND not loopback of it AND 6 = type of it) of networks
excludes loopback, down, and non ethernet adapters.
This might be a slight enhancement on the filter… adding address of it != "0.0.0.0"
(maximum transmission units of it, concatenations ";" of (it as string) of addresses of it) of adapters whose(up of it AND not loopback of it AND 6 = type of it AND address of it != "0.0.0.0") of networks
Apparently, this inspector is not looking in the correct place. It does not return the same results as this command: netsh interface ipv4 show subinterface