Hello, Still on the WMI problems :-)
I am trying to get the IP address of each machine using the WMI because I am using WMI for other stuff its just easyier to do it all through that.
I have the correct command to get IP address information but when it runs it comes up with lots, this is only a sample of what it has brought up on my pc:
Now all the machines in the Network are going to start with the IP address 10.10.1.x so is there anyway I can filter the results and get only the bit I am looking for so for instance from this one my IP address would return: 10.10.1.63Code:----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: 10.10.1.63 ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance ----------------------------------- IPAddress: ----------------------------------- Win32_NetworkAdapterConfiguration instance -----------------------------------
Thanks,
Max





Reply With Quote