WMI Get Network Computer Names?

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 ???



pointemanAsked:
Who is Participating?
 
Priest04Connect With a Mentor 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
0
 
pointemanAuthor Commented:
I used both solutions in my project, thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.