Board logo

标题: [转载代码] [PowerShell每日技巧]远程获取MAC地址(20131119) [打印本页]

作者: DAIC    时间: 2013-11-20 09:21     标题: [PowerShell每日技巧]远程获取MAC地址(20131119)

Here is an easy way to get the MAC address, even from a remote machine:

PS > getmac.exe /S 127.0.0.1 /FO CSV | ConvertFrom-CSV

Physical Address                                  Transport Name
----------------                                  --------------
68-A8-6D-0B-5F-CC                                 \Device\Tcpip_{6BCF0C7B-562E-4DE5-97...
N/A                                               Hardware not present
N/A                                               Hardware not present


Simply replace the IP address with the one you are interested in. You may need appropriate Admin privileges to access the information, of course.

http://powershell.com/cs/blogs/tips/archive/2013/11/19/getting-mac-address-remotely.aspx




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2