حدث
١ ذو القعدة، ٢ م - ٢ ذو القعدة، ٧ م
انضم إلى الحدث الظاهري ل Windows Server في نهاية المطاف من 29 إلى 30 أبريل للجلسات الفنية المتعمقة وال Q&A المباشر مع مهندسي Microsoft.
سجّل الآنلم يعد هذا المتصفح مدعومًا.
بادر بالترقية إلى Microsoft Edge للاستفادة من أحدث الميزات والتحديثات الأمنية والدعم الفني.
Returns the media access control (MAC) address and list of network protocols associated with each address for all network cards in each computer, either locally or across a network. This command is particularly useful either when you want to enter the MAC address into a network analyzer, or when you need to know what protocols are currently in use on each network adapter on a computer.
getmac[.exe][/s <computer> [/u <domain\<user> [/p <password>]]][/fo {table | list | csv}][/nh][/v]
Parameter | Description |
---|---|
/s <computer> |
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. |
/u <domain>\<user> |
Runs the command with the account permissions of the user specified by user or domain\user. The default is the permissions of the current logged on user on the computer issuing the command. |
/p <password> |
Specifies the password of the user account that is specified in the /u parameter. |
/fo {table | list | csv} | Specifies the format to use for the query output. Valid values are table, list, and csv. The default format for output is table. |
/nh | Suppresses column header in output. Valid when the /fo parameter is set to table or csv. |
/v | Specifies that the output display verbose information. |
/? | Displays help at the command prompt. |
The following examples show how you can 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
حدث
١ ذو القعدة، ٢ م - ٢ ذو القعدة، ٧ م
انضم إلى الحدث الظاهري ل Windows Server في نهاية المطاف من 29 إلى 30 أبريل للجلسات الفنية المتعمقة وال Q&A المباشر مع مهندسي Microsoft.
سجّل الآن