Ask a questionAsk a question
 

AnswerRetrieve local host name

  • Friday, November 20, 2009 3:05 PMderiksen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    What I'm looking for is a way to retrieve all LOCAL hostnames in an IP range, not the reverse DNS lookup. Anyone?

    /D

Answers

  • Friday, November 20, 2009 4:35 PMmjolinor Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can run a pingsweep, and then use use wmi to get the computer name from the win32_computersystem class on anything that answers a ping.  Not sure how you'd go about getting the host names from non-windows devices.

All Replies

  • Friday, November 20, 2009 4:35 PMmjolinor Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can run a pingsweep, and then use use wmi to get the computer name from the win32_computersystem class on anything that answers a ping.  Not sure how you'd go about getting the host names from non-windows devices.