WMI Get Network Computer Names?

pointeman
pointeman used Ask the Experts™
on
I've used WMI to find many local computer info, but never attempted searching Network information. I've look all ove the Internet and cannot find a single good article. Help...

Q. Can WMI find network computer Names and corresponding IP's ???



Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I didnt answered for the IP addresses, so here it is: there is a Ping class in System.Net.NetworkInformation

http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx

that will allow you to resolve IP address by sending ICMP messages.

And here is another approach, not using WMI, but Netxxx API's

http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx

Author

Commented:
I used both solutions in my project, thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial