> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Get MAC Address
- URL: https://www.filipkonopik.com/powershell-get-mac-address/
- Published: 2026-07-17T10:11:01.000Z
- Updated: 2026-08-06T05:21:27.000Z
- Author: Filip Konopík
- Tags: Connectivity

Network inventory, MAC-based filtering, or troubleshooting a NIC issue - this one-liner pulls the MAC address for every network adapter on the machine in one go.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```Powershell
Get-CimInstance -ClassName Win32_NetworkAdapter | Select-Object Name, MACAddress, NetEnabled
```

Example Output:

```Powershell
Name                      MACAddress        NetEnabled
----                      ----------        ----------
Wi-Fi                     00-1A-2B-3C-4D-5E False
Ethernet                  00-1A-2B-3C-4D-5F True
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Get-CimInstance Win32\_NetworkAdapter queries all network adapters recognized by the system through the classic WMI class, including their configuration and hardware details.
- Name identifies the adapter, so you can tell which interface each MAC address belongs to.
- MacAddress shows the physical hardware address burned into the adapter - this stays the same regardless of IP configuration or network changes.
- NetEnabled shows whether the adapter is active (True) or not (False), which helps you spot the interface actually in use versus ones sitting idle.
- Select-Object trims the output down to just these three properties, since Win32\_NetworkAdapter also returns a lot more data (like Speed, AdapterType, or Manufacturer) that isn't needed for a quick MAC lookup.

Pro Tip:

On newer systems, there's a cleaner purpose-built alternative - readable status instead of true/false, and short friendly adapter names. Great for quick local lookups; stick with CIM for older systems or remoting.

Quick Command:

```powershell
Get-NetAdapter | Select-Object Name, MacAddress, Status
```

Example Output:

```powershell
Name     MacAddress        Status
----     ----------        ------
Wi-Fi    00-1A-2B-3C-4D-5E Disconnected
Ethernet 00-1A-2B-3C-4D-5F Up
```