Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 310
نمايش فراداده

getmacnew in WS2003

Diplays MAC address and network protocols for all network cards.

Syntax

getmac [/s Computer [/u Domain\User [/p Password]]] [/fo 
{TABLE | LIST | CSV}] [/nh] [/v]

Options

/s Computer /u [Domain\]User /p [Password]

Name or IP address of a remote computer (if omitted, defaults to local computer) and credentials for running the script (if omitted, defaults to SYSTEM built-in identity)

/fo {TABLE | LIST | CSV}

Format for displaying driver properties (if omitted, default is TABLE)

/nh

Omits header row from displayed information if /fo is set to TABLE or CSV

/v

Displays verbose information

Examples

List MAC addresses for interfaces on local machine:

getmac /fo list
Physical Address: 00-02-1E-F3-28-36
Transport Name:   \Device\Tcpip_{59EC22D4-09DF-4720-B5B1-A9444E90CCD1}

Repeat in verbose mode:

getmac /fo list /v
Connection Name:  Local Area Connection
Network Adapter:  3Com EtherLink XL 10/100 PCI For Complete PC 
Management NIC 
(3C905C-TX)
Physical Address: 00-02-1E-F3-28-36
Transport Name:   \Device\Tcpip_{59EC22D4-09DF-4720-B5B1-A9444E90CCD1}

See Also

TCP/IP