Every network Interface card, be It a wired or wireless connection, has what's called a MAC address (also known as a physical address or hardware address) that's assigned to It by the manufacturer, and Is unique to each network adapter. This allows devices to transmit data and communicate over a network. Sometimes, It's necessary to know the MAC address of your network adapter(s), and In this tutorial, I will show you how to view and save the MAC address of every adapter/device.
Whether you want to Implement MAC address filtering, or your device has been blacklisted and you wish to bypass restrictions, or you simply want to Identify each one for connectivity purposes, you obviously need to know the MAC address of the devices In question.
This also applies to VPN (Virtual Private Network) and Virtual Machine network adapters- both of which have dedicated MAC addresses, that're allocated during the Installation and configuration process. As such, on a given computer, It's not only the PC's MAC address that's of relevance. Taking all this Into account, I will demonstrate how to view each address, and save the results to a text file.
To achieve this, I will be using the Command Prompt, PowerShell and the Wi-Fi settings native to Windows. So without further delay, let's get this started.
Firstly, we'll view and print only the computer's MAC address. Open the Windows Settings, and click on Network & Internet and shown below.
To the left of the window, click on Wi-Fi and to the right of that, double-click on your network connection.
Scroll down to the bottom, and you will see the Physical address (MAC) of your computer's network adapter. To generate a report to a text file, simply click Copy.
Upon opening the report In Notepad, the MAC address, along with an array of other network details, have been generated. This Information Is very handy for diagnostic and connectivity purposes.
That was only relative to your PC, so let's delve Into every other entity (on your computer) that contains a MAC address, by using the Command Prompt. To access It, open the Run menu, enter cmd and hit OK.
The Command Prompt will now open, so type getmac /v and hit the Enter key on your keyboard. As you can see, the MAC address of my Wi-Fi adapter, Virtual Machine, VPN and Bluetooth device have all been returned. They're all listed under Physical Address.
Whilst still In the Command Prompt, let's print the above details to a text file. The syntax for this Is as follows.
getmac /v > c:\FolderName\Output File Name.txt
Replace the FolderName with your choice of folder, and the Output File Name with the name of your text file. Here's what my command looks like.
getmac /v > c:\motheredsFolder\Macaddresses.txt
And this Is the entry In the Command Prompt.
After hitting the Enter key on my keyboard, the text file has been successfully generated to the above directory.
I've now opened the text file, and the MAC address (Physical Address) of every network adapter Is viewable.
Now let's grab every MAC address using PowerShell. Open the Run menu, enter powershell and hit OK.
To only display every MAC address In PowerShell, type Getmac and hit the Enter key. You can see my list as per the Image below.
Now let's print the list to a text file. Using the same syntax as In Step Seven above, enter your command. Mine looks like this.
Getmac > c:\motheredsFolder\Macaddresses.txt
Replace those highlighted In red and blue, with your folder name and text file name respectively, and hit Enter. This Is my command In PowerShell.
After opening the text file, the details are very similar to that of the Command Prompt. Of relevance, are the MAC addresses (Physical Address).
Although this may seem like quite a lengthy process, It only takes a minute or so to complete and access the details of each methodology. The good thing about this, Is that It's performed natively within Windows without the requirement for third-party tools. If you come across Issues generating the text files, simply execute the Command Prompt and/or PowerShell with elevated privileges.