Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to scan all the computers on our network and bring back there computer name and allocated IP.

For example:

scanrange -s -e

The result I'm looking for are like so - \\EDC-SR-USR-004456 - \\EDC-SR-USR-004466 - \\EDC-SR-USR-004826

Are there any examples of how this can be accomplished via command prompt?

share|improve this question
up vote 4 down vote accepted

Angry IP scanner has command-line support, however it can not display results in the prompt. It can however write to a file that you later can display in your command prompt.

For example:

C:\Users\<NAME>\Downloads>ipscan-3.0-beta4.exe -f:range -s -q

Initiates a scan that scans the range -

C:\Users\<NAME>\Downloads>ipscan-3.0-beta4.exe -f:range -s -q -o log.txt

Initiates a scan that scans the range - and writes the results to log.txt

type log.txt

Would then print the log file to the command prompt like so:

Generated by Angry IP Scanner 3.0-beta4

Scanned -
8-jul-2010 10:53:38

IP              Ping            Hostname                Ports      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]      1 ms            HOSTNAM                 [n/s]      [n/a]           [n/s]                   [n/s]      [n/a]           [n/s]                   [n/s]

These are the commands for Angry IP scanner:

Pass the following arguments:
[options] <feeder> <exporter>

Where <feeder> is one of:
-f:range <Start IP> <End IP>
-f:random <Base IP> <IP Mask> <Count>
-f:file <File>

<exporter> is one of:
-o filename.txt     Text file (txt)
-o filename.csv     Comma-separated file (csv)
-o filename.xml     XML file (xml)
-o filename.lst     IP:Port list (lst)

And possible [options] are (grouping allowed):
-s  start scanning automatically
-q  quit after exporting the results
-a  append to the file, do not overwrite
share|improve this answer

nmap - - is an excellent portscanner which will do name lookup.

If you are simply looking to get a list of machine names from Windows (I'm guessing, given you refer to the "Command Prompt") you could simply usenet view

share|improve this answer
net view does not force the discovery of computers and henceforth does not show all computer necessarily. – BloodPhilia Jul 8 '10 at 8:48
thanks for the net view information but i cant find any switches to show the computer information aswell like my example: IP - NAME - DESCRIPTION :/ but net view for me is a good start. – RobertPitt Jul 8 '10 at 8:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.