Sign in with
Sign up | Sign in
Your question

Show IP address of a lst of computers

Last response: in Business Computing
Share
June 13, 2013 7:42:32 PM

I have a txt file with computer names on my domain, and i need to generate a report to find the IP address of all the computers in this list. What cmd/syntax do i need to do this?

More about : show address lst computers

June 13, 2013 7:54:39 PM

pologoalie8908 said:
I have a txt file with computer names on my domain, and i need to generate a report to find the IP address of all the computers in this list. What cmd/syntax do i need to do this?


for /f %I in (computer_names.txt) do ping %I | find "Pinging" >> output_file.txt

If you use it in a .cmd or bat file, remember you need to "%%I" instead of just "%I"
m
0
l
June 13, 2013 7:56:13 PM


hmm no that wont do, i need to be able to just querey the dhcp server, if i wanted to put a script on each computer id still have to do it one by one, i need an automated way of running the report then exporting it to a txt file
m
0
l
Related resources
!