Question Locked

Find IP address by AD username?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Well I've searched the web a few times over and can't seem to find anything. I'm trying to find some software (preferably free) that will tell me the IP address of a machine, given only the Active Directory username of the user logged into that machine. Anyone know of anything? Thanks!

5 replies

by robo_dev

Using a LDAP browser tool like Softerra, I believe you could find the machine name being used by the username by querying the domain controller...then you could ping the machine name to give you the IP address.

I don't believe that you can directly enumerate username remotely, but I could be wrong.

With psloggedon, you can see who is logged on, but you would still need to ping the machine name to get the IP
http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx

So the long way around the barn would be to:

1) Enumerate machine names in AD:
http://www.myitforum.com/articles/32/view.asp?id=9449

2) Enumerate logged on users, using psloggedon,

3) Ping enumerated machines, to give IP.

4) Correlate logged on users to IP addresses, based on step 2 above.

by cgore82

Thanks that PSLoggedon.exe is exactly what I need, we incorporate 4th octet of IP addresses into machine names so I won't even have to ping to resolve IP. Thanks!!!

by lowlands

I found works is to query WINS for a username. this however only works if the messenger service is enabled on the workstation, it created a [03h] WINS messenger record with the username.

by readysound

I created a "Lookup User (LUSER)" script to do just this. It works by querying network session information on remote servers (file server etc). It will need tweaking for your environment but hope it helps :

http://www.safetoland.com/pctools.html

This discussion is closed to new replies.