QuickTip: Get wireless network adapter with PowerShell

If you want to retrieve a wireless network adapter with PowerShell, do not use the name property of the Get-NetAdapter cmdlet to filter the adapters by name or with wildcards. This property is unreliable because the name of the adapter may have been changed by a user or administrator and it is different in MultiLanguage deployments (e.g. Wi-Fi on an English OS, WLAN on a German OS).

Use InterfaceType instead:

Get-NetAdapter | ? {$_.InterfaceType -eq "71"}

2016-05-26 15_06_58-Windows PowerShell

The MSFT_NetAdapter class is documented here: https://msdn.microsoft.com/en-us/library/hh968170(v=vs.85).aspx

Unfortunately, the values of the InterfaceType property are not documented exceptionally. But you can find them here: https://technet.microsoft.com/de-de/aa366320

Value 6 equals Ethernet interfaces, value 71 equals wireless network interfaces.

Happy PowerShell scripting!