The netsh command can use the adapter(network interface) name to set the IP address like this:
netsh interface ipv4 add "Local Area Connection 2" 192.168.1.1 255.255.255.0
But from Go I get the interface name like this: {A3768A7A-8E5F-42F8-81E3-3BCAACEC9FBE}, this name doesn't work when using netsh.
Yes, I can use the adapter index number instead. But is there a way to convert this name to "Local Area Connection 2"?