Aquire IP from PC name
Hi
I am trying to get IP address's for remote PC's
All i have is the name of the PC, i can ping it or C$ into it but thats all
Any info would be great
Thanks
Lee H
I am trying to get IP address's for remote PC's
All i have is the name of the PC, i can ping it or C$ into it but thats all
Any info would be great
Thanks
Lee H
.
Comments
-
ally_uk Member Posts: 1,145 ■■■■□□□□□□Few ways of doing this
You could write a script which runs every 15 minutes on the remote computer that checks the current IP address and emails you it back to you.
If your using static IP's then you could use a IP scan tool
http://remote-ip-address.qarchive.org/
Hope this helps there may be a easier way of doing like a lookup or something along those lines if anyone knows a easier solution I would be interested aswell!Microsoft's strategy to conquer the I.T industry
" Embrace, evolve, extinguish " -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□If you ping the computer name, doesn't it reply with the IP address?All things are possible, only believe.
-
Lee H Member Posts: 1,135Thanks guys
It does give the Ip if u ping the PC name,my inventory software requres an IP range so now i can scan them
Cheers
Lee H. -
wastedtime Member Posts: 586 ■■■■□□□□□□I am assuming this is a domain configuration for these computers. If so just make this bat file:
for /f %%a in (complist.txt) do call :NextOne %%a goto :EOF :NextOne nslookup %1 | find /v "domain server IP" | find /v "domain server name"
Just change "domain controller IP" and "domain controller name" to the correct info (typing nslookup into cmd would get you both of those). Just get a txt file that has a list of your computer names. I just go to "active directory users and computers" and export a list from there. After that I just enter the bat file into the command line and redirect the output to a text file.
Also if these are all windows boxes you could use a few wmic commands like:wmic /node:"@complist.txt" nicconfig get ipaddress /format:htable > output.htm
You just need to have the adminpack installed as far as I know.