4

Is there a way to resolve NIC service IDs (the GUID assigned to each hardware NIC) from the command line?

paxos1977
  • 370
  • 1
  • 4
  • 12

2 Answers2

6

If you mean the actual GUID that the machine has assigned to your nics, use netsh from the cmd line (you may need to start the Wired AutoConfig and/or WLAN AutoConfig services first).

For wired NICs:

netsh lan show interfaces

And for wireless NICs:

netsh wlan show interfaces

The output will include the GUIDs of each network interface.

Synetech
  • 908
  • 1
  • 12
  • 27
Matt
  • 1,903
  • 13
  • 12
0

I assume you're referring to MAC addresses?

If so, the arp command is your friend. arp -a will show all the addresses your OS knows about. arp -a <IP> will display just the MAC address of a specific host. If you don't have a GUID on a specific host, pinging them should pick it up. That being said, this will only work on hosts on the local network. Packets sent to/from external networks will utilize the MAC address of the local gateway.


--Christopher Karel

Christopher Karel
  • 6,442
  • 1
  • 26
  • 34