Skip to content

Instantly share code, notes, and snippets.

@DarrenF-G
Created September 21, 2020 20:09
Show Gist options
  • Save DarrenF-G/8b5c6d010b066bbd79d8460410adb071 to your computer and use it in GitHub Desktop.
Save DarrenF-G/8b5c6d010b066bbd79d8460410adb071 to your computer and use it in GitHub Desktop.
Get-NetAdapter | select name, deviceid, ifindex, interfacedescription
name deviceid ifIndex interfacedescription
---- -------- ------- --------------------
Bluetooth Network Connection {EDBA0366-9418-4D07-8AA4-1C97275D82C7} 23 Bluetooth Device (Personal Area Network)
Ethernet 2 {ED1B494B-922F-48DB-8507-95B0E27F0697} 22 SonicWALL Virtual NIC
Ethernet 5 {CF22AB05-9744-4584-A1EF-1F776BA3B389} 19 Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
vEthernet (WSL) {62F403D7-66EC-450D-A058-AF1425774724} 49 Hyper-V Virtual Ethernet Adapter
Wi-Fi {52748637-E8D2-4EF0-AF0A-FCA9985FA051} 12 Intel(R) Wireless-AC 9560 160MHz
Ethernet 6 {38E7C952-5730-46CC-8B59-5DC7B3F728EE} 8 Dell GigabitEthernet
gwmi win32_networkadapterconfiguration -filter "IPEnabled = 'TRUE'"
DHCPEnabled : True
IPAddress : {10.0.0.163, fe80::50c9:a739:4ba8:ff20}
DefaultIPGateway : {10.0.0.253}
DNSDomain : HOME.local
ServiceName : Netwtw08
Description : Intel(R) Wireless-AC 9560 160MHz
Index : 3
DHCPEnabled : False
IPAddress : {172.22.32.1, fe80::ecd7:458d:2c4e:e1dc}
DefaultIPGateway :
DNSDomain :
ServiceName : VMSNPXYMP
Description : Hyper-V Virtual Ethernet Adapter
Index : 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment