GETMAC returns the media access control (MAC) address of all network adapters in the computer and the list of network protocols for each address _dos/bat

Source: Internet
Author: User
Returns the media access control (MAC) address of all network adapters in the computer and the list of network protocols for each address, either from the local area or back through the network.

Grammar
Getmac[.exe] [/s Computer [/u domain\user [/P Password]]] [/FO {table| List| CSV}] [/NH] [v]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
Run with an account permission command from user or domain\user. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/fo {table| List| CSV}
Specifies the format of the query results output. Valid values are TABLE, LIST, and CSV. The default format for output is TABLE.
/nh
Compresses the column headers in the output. Valid when setting the/FO parameter to TABLE or CSV.
/V
Specifies the output display details.
/?
Display Help at the command prompt.
Comments
Getmac can be used to enter a MAC address into the network analyzer, or to determine the protocols for each network adapter that is currently in use on the computer.
Example
The following example shows how to use the GETMAC command:

GETMAC/FO table/nh/v
GETMAC/S Srvmain
GETMAC/S srvmain/u MAINDOM\HIROPLN
getmac/s srvmain/u maindom\hiropln/p p@ssw23
getmac/s srvmain/u maindom\hiropln/p p@ssw23/fo list/v
getmac/s srvmain/u maindom\hiropln/p p@ssw23/fo table/nh

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.