合 powershell中Get-NetAdapter获取网络适配器信息
Tags: OSWindows网络适配器powershell
通用获取方法
追加 | fl 以列表格式化显示,| ft 以表格格式化显示(默认);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | Get-NetAdapter | fl Name : Ethernet0 InterfaceDescription : Intel(R) 82574L Gigabit Network Connection InterfaceIndex : 11 MacAddress : 00-0C-29-D7-48-DD MediaType : 802.3 PhysicalMediaType : 802.3 InterfaceOperationalStatus : Up AdminStatus : Up LinkSpeed(Gbps) : 1 MediaConnectionState : Connected ConnectorPresent : True DriverInformation : Driver Date 2020-06-10 Version 12.18.9.23 NDIS 6.50 PS C:\Users\lhr> Get-NetAdapter | ft Name InterfaceDescription ifIndex Status MacAddress LinkSpeed ---- -------------------- ------- ------ ---------- --------- Ethernet0 Intel(R) 82574L Gigabit Network Conn... 6 Up 00-0C-29-F1-B9-1E 1 Gbps Npcap Loopback Adapter Npcap Loopback Adapter 4 Up 02-00-4C-4F-4F-50 1.2 Gbps |