

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
How to get the mac address of laptop skin#
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.
