Command line Utility for remotely grabbing an IP address.

I want a commandline utility that can get the IP address of a REMOTE pc without there intervention.  The only information I have is the users Domain and login name.  I am a domain administrator and I am logged on to the domain.  Please do not tell me IPCONFIG, because that doesn't work remotely.  What I am looking for is the NT equivalent of NPING, a NetWare utility.  I know that if I use nbtstat if I have the computername i can get the IP address, but I want something that does not require user intervention.
dodddAsked:
Who is Participating?
 
SysExpertConnect With a Mentor Commented:
I would add ipconfig as part of the login script and have all the output go to a single file daily.
Add the Set command after the ipconfig going to the same file.

This would allow you to see the ipconfig info as soon as a person logs in, and has enough info so you can search by netbios or username.


I hope this helps .

0
 
igoreCommented:
I'm not sure if this will meet your needs but you could use ping with the -a option to resolve the name or alternatively use nslookup on the IP but this will only query the DNS for the reverse lookup name.
0
 
samriCommented:
doddd,

I think you could try NTop, and NMap.

http://www.nmap.org/
http://www.ntop.org/ntop.html

Basicall Ntop should give you some detailed activity on your network, and Nmap should be able to drill down to those detail machine.  even though the Win32 do have some limited capabilities, it should be interesting enough to try.

cheers.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
jatcanCommented:
IS this user on YOUR network? Does this user use the same machine everyday. Just ping the machine name (host name), it'll give you back the IP everytime, no? If you are the admin then you MUST have access to the floor plan/machine name map? You know, for example my seat is H-10, row H, seaqt 10. My company has a map that tells them what the machine name for that seat is (moving machines gets you fired -  or at least a pretty hard slap on the wrists:-), do you have access to something similar, an admin should have access to this...what is the naming convention for your machines(DHCP), most companies just use the employees login name as the HOST name for easy identification og ther machine name in times connectivity issues...
0
 
samriCommented:
Sorry... I missed the fact that you are looking for Command Line utility.

If you are on the the physical LAN as the user, you can use "ARP -a" command to show the ARP table, and you should have a list of MAC Address and it's IP Address.
0
 
dodddAuthor Commented:
igore,

Thanks, but I can't ping the username.  User can move from desk to desk.  What I am after is a method of getting the IP address with only the username.  Natively, it appears that there is no utility to do this.

samri,

thanks, but again, I need to find it based on username.  I may be able to do this using those tools, but I imagine that they would chew up heaps of bandwidth each time they were run.  Thanks for the links though, I will note them down.  What I am after is a util that queries only the PDC, and can return the IP or machine name for a PC given only the username.

sysexpert,

Your answer seems the most logical and I can see that it would work.  I will give you the points if no one comes up with an actual util that will do it.

0
 
samriCommented:
doddd,

I would second SysExpert's approach!
0
 
jmiller47Commented:
You can try this FROM THE SERVER:

NET SESSION

It should have the information you want, but maybe too much in a large Domain.
0
 
samriCommented:
i thinkg NET SESSION would have some information about user if they use any shares from the server
0
 
jmiller47Commented:
Actually, any logged in user should be displayed and the IP address of the computer they are on should be listed..

If you redirected the results to a text file and parsed it for the logon name you are looking for - you could instantly find the IP address.. A bit of scripting, but if it's worth it... :)
0
 
jmiller47Commented:
Have you been able to try this yet?
0
 
dodddAuthor Commented:
Thanks sysexpert.  Your method is very practical.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.