On a Windows 2003 server/Windows XP, order of 'Network connections' is set
using 'Advanced->Advanced Settings' menu of 'Network Connections' MMC Snap-in.
I have a requirement where I need list of IP addresses on the machine
through WMI in WSH scripts, in the same order as specified in 'Network
Connections' MMC Snap-in.
Currently I'm using query ""select IPAddress from
Win32_NetworkAdapterConfiguration where IPEnabled=TRUE" but the IP addresses
are not in the order as mentioned above.
Questions:
1. Is it possible to get IPaddresses through WMI as per order?
2. If yes, what is the WMI query to be used?
Thanks in advance,
Raghavendra
|