Subject: | Error in displaying adapters |
When you have two adapters, one named: 'Local Area Connection' and the
other named: 'Local Area Connection 2' the function:
$adapter = $ipconfig->get_adapter("Local Area Connection");
$currentAdapterName = $adapter->get_name;
print "$currentAdapterName";
returns always the adapter settings from 'Local Area Connection 2'.
So it is impossible to me for displaying the correct settings for the
first adapter, I get always the information from the second adapter. I
tried to change the name to 'My Local Area Connection' which works
fine on both interfaces, but this is not the way I'd like to do.
Thanks for Help,
tinti