In Windows 7 I'm using the command
for /l %i in (1,1,254) do nbtstat -a xxx.xxx.xxx.%i to return host names based on a given IP range. But the output is so long and unfriendly. How could I improve it to return a list that looks more like a spreadsheet like:
IP address Host name MAC address
xxx.xxx.xxx.1 host-name-01 xx-xx-xx-xx-xx-x1
xxx.xxx.xxx.2 host-name-02 xx-xx-xx-xx-xx-x2
xxx.xxx.xxx.3 host-name-03 xx-xx-xx-xx-xx-x3
I've seen commands that have something like
| list xxx at the end, but I'm not super-familiar with that particular syntax.