Neither ``` $IfaceName = $iface.NetConnectionID or $Name = $iface.GetRelated("Win32_PnPEntity") | Select-Object -ExpandProperty Name ``` return the name of the interface properly. These should work according to https://devblogs.microsoft.com/scripting/use-powershell-to-identify-your-real-network-adapter/ and other sites