Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Getmac command in dos

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report