Getmac command in Windows
Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
The getmac command returns the media access control (MAC) address and the list of network protocols associated with each address for all network cards in the local computer or network computer.
Getmac command syntax
getmac[.exe][/s [/u
Parameters
Parameter Description / s Specifies the name or IP address of the remote computer (do not use a backslash). The default is the local computer. / u Run the command with the user account privileges specified by User or DomainUser. The default is the rights of the currently logged on user on the computer that is issuing the command. / p Specifies the password of the user account specified in the / u parameter . / fo {TABLE | list| list | CSV} Chỉ định định dạng để sử dụng cho đầu ra truy vấn. CSV} Specifies the format to use for the query output. Valid values are TABLE , list and CSV. The default format for output is TABLE. / Remove the column header in the output. Valid when the / fo parameter is set to TABLE or CSV. / v Specifies that detailed information displays the output. /?Note
The getmac command can be useful when you want to enter the MAC address into the network analyzer tool or when you need to know which protocol is currently used on each network adapter in the computer.
For example
The following examples show how you can use the getmac command :
getmac /fo table /nh /v
getmac /s srvmain
getmac /s srvmain /u maindomhiropln
getmac /s srvmain /u maindomhiropln /pp@ssW23
getmac /s srvmain /u maindomhiropln /pp@ssW23 /fo list /v
getmac /s srvmain /u maindomhiropln /pp@ssW23 /fo table /nh
See more:
- Fsutil command in Windows
- Scwcmd command in Windows
- The rpcping command in Windows
4.1 ★ | 7 Vote
You should read it
May be interested
- Rem command in Windowsthe rem command helps write comments (comments) in a batch file or config.sys.
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.