getmac


getmac new 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



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net