NIC の MAC 情報の表示
getmac
- C:\Windows\system32\getmac.exe /?
Output:
GETMAC [/S システム [/U ユーザー名 [/P [パスワード]]]] [/FO 形式] [/NH] [/V]
説明:
このツールを使って、管理者がシステム上ネットワーク
アダプターの MAC アドレスを表示することができます。
パラメーターの一覧:
/S システム 接続先のリモート システムを指定します。
/U [ドメイン\]ユーザー コマンドを実行するユーザー コンテキスト
を指定します。
/P [パスワード] 与えられたユーザー コンテキストのパスワード
を指定します。省略した場合は入力する必要が
あります。
/FO 形式 出力を表示する形式を指定します。
有効な値: "TABLE"、"LIST"、"CSV"
/NH 列ヘッダーが出力に表示されないように指定
します。
TABLE および CSV の形式で有効です。
/V 詳細な情報を出力で表示するように指定します。
/? このヘルプを表示します。
例:
GETMAC /?
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 [/S system [/U username [/P [password]]]] [/FO format] [/NH] [/V]
Description:
This tool enables an administrator to display the MAC address
for network adapters on a system.
Parameter List:
/S system Specifies the remote system to connect to.
/U [domain\]user Specifies the user context under
which the command should execute.
/P [password] Specifies the password for the given
user context. Prompts for input if omitted.
/FO format Specifies the format in which the output
is to be displayed.
Valid values: "TABLE", "LIST", "CSV".
/NH Specifies that the "Column Header" should
not be displayed in the output.
Valid only for TABLE and CSV formats.
/V Specifies that verbose output is displayed.
/? Displays this help message.
Examples:
GETMAC /?
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
Return Code: 0
C:\Windows\system32\getmac.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 90112bytes |
| Creation Time | 2019/12/07 18:09:04 |
| LastWrite Time | 2019/12/07 18:09:04 |
| ProductVersion | 10.0.19041.1889 |
| FileVersion | 10.0.19041.1889 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 7d4b72dff5b8e98dd1351a401e402c33 |
| SHA1 | 40810fb6eee8856b1884ecb528c88b97e447c5d8 |
| SHA224 | 042f0ef234e011c44383446e7444891f5f75bcd365dbabe6a015e4f6 |
| SHA256 | 467ce33b5145c6e71499f32139f14d81b47c38f11dca26b330367add263dba12 |
| SHA384 | bab432f0e2300ed98bac9b8918d9ffff322250c40254fa0706761e889c1cbb1e47ff2484ca495ef208ce4b5c03e8a08c |
| SHA512 | 5a26e5e22ad1005e67f6b66187df4e6f75f1b611b2c8d615af34bd61e94fd48fc64b606e7c43d608d112096c7bbaa8fddfc8a9acb603ab137e71d85783b98fd5 |