getmac: This command line tool enables an administrator to display the MAC address for one or more network adapters on a system.


... "getmac" 摘自 Microsoft Windows 帮助
... 命令"getmac"的示例
... 重要信息,"getmac"命令的提示

命令: "getmac" 开启 Windows 11, 10, .. 可用

"getmac" 摘自 Microsoft Windows 帮助

Microsoft Windows [Version 10.0.19045.3693]
(c) Copyright 1985-2023 Microsoft Corp.

C:\\WINDOWS>


GETMAC [/S system [/U username [/P [password]]]] [/FO format] [/NH] 
[/V]

描述:
    此命令行工具使管理员能够显示系
    统上一个或多个网卡的 MAC 地址。

参数列表: 
    /S     system            指定要连接到的远程系统。

    /U     [domain\]user     指定用户上下文,命令在此上下
                             用户上下文。

    /P     [password]        指定给定用户上下文
                             密码。如果省略则提示输入。

    /FO    format            指定输出显示的
                             格式。
                             有效值: "TABLE","LIST","CSV"。

    /V                       指定详细信息应该
                             在输出中显示。

    /NH                      指定 ""Column Header"" 在输出中
                             不应该被显示。
                             只对 TABLE 和 CSV 格式有效。

    /?                       显示帮助/用法。

示例: 
    GETMAC /FO csv 
    GETMAC /S system /NH /V
    GETMAC /S system /U user
    GETMAC /S system /U domain\user /P password /FO list /V
    GETMAC /S system /U domain\user /P password /FO table /NH

命令"getmac"的示例

以下是一些使用示例`getmac`Windows 命令提示符 (cmd) 中的命令: 示例 1:显示所有 MAC 地址:

getmac

此命令显示计算机上的所有物理网络适配器及其关联的 MAC 地址。 示例 2:显示特定适配器的 MAC 地址:

getmac /v /fo list /nh /fi "Connection_Name eq Ethernet"

此命令显示名为“Ethernet”的网络适配器的详细信息,包括其 MAC 地址。您可以相应地调整适配器名称。 示例 3:仅显示物理 MAC 地址:

getmac /v /fo list /nh | findstr /i "Physical"

此命令过滤掉并仅显示物理 MAC 地址。 示例 4:显示远程计算机的 MAC 地址:

getmac /s 远程计算机 /u 用户名 /p 密码

将“RemoteComputer”、“Username”和“Password”替换为适当的值。此命令显示远程计算机上网络适配器的 MAC 地址。 示例 5:显示网络上所有计算机的 MAC 地址:

for /f %i in ('arp -a ^| find "-"') do getmac /s %i

此命令循环遍历所有地址解析协议 (ARP) 表条目并显示找到的 IP 地址的 MAC 地址。 注意:某些示例可能需要管理权限或特定权限。如有必要,请确保您以管理员身份运行命令提示符,并且您具有适当的访问权限。

重要信息,"getmac"命令的提示

当使用`getmac`Windows命令提示符中的命令,有几点需要注意: 1. 管理员权限: 确保您以管理员身份运行命令提示符以获得所有必要的权限`getmac`- 拥有指挥权。某些信息需要提升权限。

右键点击 -> "作为 Administrator 执行"

2. 网络适配器名称的准确性: 该命令的正确使用取决于网络适配器名称的准确拼写。您可以使用可用的网络适配器`ipconfig /all`查看。 3. 远程计算机访问: 如果您想获取远程计算机的 MAC 地址,请确保您拥有访问这些计算机的必要权限。使用选项`/s`,`/u``/p`指定远程计算机、用户名和密码。

getmac /s 远程计算机 /u 用户名 /p 密码

4. 过滤信息: 您可以将该命令与其他命令一起使用,例如`findstr`组合起来仅显示特定信息。确保正确应用过滤器。

getmac /v /fo list /nh | findstr /i "Physical"
 
5. 隐私问题: 请注意,在网络上显示 MAC 地址可能会引起隐私问题。确保您有权访问此信息并负责任地处理此数据非常重要。 6. ARP表及网络环境: 如果要查看网络上所有计算机的MAC地址,可以使用ARP表。但请注意,此方法并不总是 100% 可靠。

for /f %i in ('arp -a ^| find "-"') do getmac /s %i

请务必考虑以下几点,以确保您拥有`getmac`-有效且负责任地使用命令。


Deutsch
English
Español
Français
Italiano
日本語 (Nihongo)
한국어 (Hangugeo)
汉语 (Hànyǔ)
Türkçe
Português
Português
Svenska
Norsk
Dansk
Suomi
Nederlands
Polski









Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



指挥 getmac - This command line tool enables an administrator to display the MAC address for one or more network adapters on a system.

HTTP: ... console/cn/087.htm
0.108
27750

Show System Volume Information in Explorer View the Quad Explorer!

Select folder from List View enable, disable?

The desktop pixel query tool for Windows 11, 10, ...!

Desktop-OK Symbol Layout und Positionen speichern Möglichkeit unter Windows 11, 10, 8.1, ...!

Meine CPU, zeigt Ihnen Informationen über die CPU an unter Microsoft's Windows OS!

Undo renaming of mistakenly renamed directorys!



(0)