Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the Getmac command in dos

Shulou Source: shulou.com Published: 2022-06-03 06:29:00 10月02日 Update

This article mainly introduces how to use the Getmac command in dos, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Getmac returns the media access control (MAC) addresses of all network cards in the computer and a list of network protocols for each address, either locally or over the network.

Grammar

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

Parameters.

/ s Computer

Specify the remote computer name or IP address (backslash cannot be used). The default value is the local computer.

/ u Domain\ User

Run with user or domain\ user. Specify the user's account permissions command. The default value is the user rights of the computer that is currently logged in to issue the command.

/ p Password

Specifies the password for the user account, which is specified in the / u parameter.

/ fo {TABLE | LIST | CSV}

Specifies the format of the query result output. Valid values are TABLE, LIST, and CSV. The default format of the output is TABLE.

/ nh

Compress the column header in the output. Valid when the / fo parameter is set to TABLE or CSV.

/ v

Specifies that the output displays details.

/?

Displays help at the command prompt.

Annotation

Getmac can be used to enter MAC addresses into a network analyzer or to determine the protocol of each network adapter 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

Thank you for reading this article carefully. I hope the article "how to use Getmac commands in dos" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Commands computers addresses users articles networks outputs parameters accounts permissions formats examples help valid medium voltage middle finger value interest analyzer available through the Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia vpn macOS MariaDB