如何使用 PowerShell 查找系统的 MAC 地址?
powershellmicrosoft technologiessoftware & coding更新于 2026/2/9 23:37:17
使用 PowerShell 查找系统的 MAC 地址(物理地址)有几种方法。
使用 Get-NetAdapter 命令
使用此命令,我们可以检索网络适配器的 MAC 地址。

使用 GetMac 命令

Ipconfig 命令
我们需要使用 Ipconfig /all 来检索所有适配器的 MAC 地址。
示例
Ipconfig /all | Select-String -Pattern "Description","Physical"
输出


