How to find the MAC address of the system using PowerShell?



There are several ways to find the MAC address (Physical Address) of the system using PowerShell.

Using the Get-NetAdapter command

Using this command, we can retrieve the MAC address of the network adapter.

Using GetMac command

Ipconfig command

We need to use Ipconfig /all to retrieve the mac address of all the adapters.

Example

Ipconfig /all | Select-String -Pattern "Description","Physical"

Output


Advertisements