

:max_bytes(150000):strip_icc()/001-filter-mac-addresses-2487521-496d43952b39417e95b5a0b8aa688353.jpg)
Locate the adapter you want to find the MAC address for in the list (such as “Wireless Network Adapter” for your Wi-Fi connection). In Hardware and Connection Properties, you’ll see a list of information about every network adapter installed on your PC. It is certainly worth playing around with the properties that the above WMI query can provide in return as the information stored is vast and can lead to endless amounts of utility in your future Powershell magic.In Network & Internet settings on Windows 11, click “Advanced Network Settings,” and then select “Hardware and Connection Properties.” A quick little one liner that taps into the vast depth of information from the WMI database via Powershell power. If you know the IP address of the network adapter: (gwmi -ComputerName DNSNAMEORIPADDRESS -Class Win32_NetworkAdapterConfiguration | where ).MACAddress If you know more information about the network adapter that you want the MAC address from, we can apply filtering to the original query to bring precious to our result. Never fear though, we have the technology. However, you may find that if the device has multiple network adapters (such as teredo tunnelling for IPv6, hypervisor bridges, VPN TAPs) you are getting more noise than needed: Hopefully you will be returned a MAC Address.

In the above example, we are using the gwmi cmdlet (alias o f Get-WMIObject and are interchangeable ), pointing to a remote workstation with -ComputerName switch, filtered out information requested with the -Class switch, wrapping it all in brackets so we can retrieve just the returned Powershell MACAddress property. If your remote computer is a basic configuration then we can start of something simple (gwmi -ComputerName DNSNAMEORIPADDRESS -Class Win32_NetworkAdapterConfiguration).MACAddress While, as it goes in the world of system administration, many ways to skin such a cat, I am going to leverage both the power and versatility of Powershell combined with the vast information warehouse that is WMI (Windows Management Instrumentation). It has cropped up from time to time that we need to retrieve information, in this example, the MAC address from remotely located workstations.
