- 帖子
- 2874
- 积分
- 7021
- 技术
- 336
- 捐助
- 0
- 注册时间
- 2011-6-2
|
[转载代码] [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 |
|