简体   繁体   English

枚举所有具有 IP 和 MAC 地址的网卡 powershell

[英]Enumerate all NICs with IP and MAC addresses in powershell

How can I list all NICs with name, MAC and IP address in PowerShell?如何在 PowerShell 中列出所有具有名称、MAC 和 IP 地址的 NIC?

I know that I can combine Get-NetIPAddress and Get-NetAdapter but is there a simple way to do it because it seems to be one of the most common things in network management.我知道我可以将 Get-NetIPAddress 和 Get-NetAdapter 结合起来,但是有一种简单的方法可以做到这一点,因为它似乎是网络管理中最常见的事情之一。

The WMI class Win32_NetworkAdapterConfiguration contains this information: WMI class Win32_NetworkAdapterConfiguration 包含以下信息:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -computer localhost | Select Description, MACAddress, IPAddress

And more:和更多:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -computer localhost | Select *

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在NIC上设置静态IP-Powershell - Setting Static IP on NICs - Powershell 通过 Powershell 获取与 Azure ARM VM 的一组 NIC 关联的当前 IP 地址 - Get current IP addresses associated with an Azure ARM VM's set of NICs via Powershell Powershell-在所有文件和子目录中搜索除127.0.0.1之外的所有IP地址 - Powershell - Search for all IP addresses except 127.0.0.1 in all files and subdirectories 使用PowerShell在IP地址列表中选择所有唯一的第三个八位字节 - Select all unique third octet in a list of IP addresses with PowerShell 有没有办法使用Powershell在azure子网中打印所有IP地址? - Is there a way to print all IP Addresses in an azure subnet with Powershell? 查找存在多个NIC的几台服务器的IP和MAC地址 - Find IP and MAC address for several servers where multiple NICs are present 检查多个服务器ip地址多个nics powershell - check mulitple servers ip address multiple nics powershell PowerShell多个输入IP地址 - PowerShell Multiple Input IP Addresses 需要 Powershell 脚本来获取所有公共 IP 地址,并在所有订阅中附加资源名称、资源组 - Need Powershell script to get all public IP addresses with attached resource name, Resource group, in all subcriptions 如何使用nodejs获取连接到另一个局域网的所有设备的ip和mac地址? - How to fetch ip and mac addresses of all the devices connected to another LAN using nodejs?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM