Table of Contents
Getmac Command in Windows is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.
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.
As an 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
- Fsutil command in Windows
- Scwcmd command in Windows
- The rpcping command in Windows
FAQ
What should you know about 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.
What should you know about as an example,?
The following examples show how you can use the getmac command:
What is Getmac Command in Windows?
Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
Reader Comments 0
Sign in with email or Google to join the discussion.