Discussion Locked

How do I find the IP with only a UserID?

0 helpful
32 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to remotely fix desktop issues without interaction from the user or requiring the user to show me what their IP address is before I can help. How might I find out only which machine a user is currently logged into in my environment?

I have so far found the following resources but neither have allowed me to accomplish this:

1) http://bink.nu/Article1452.bink - This site talks about a beta program being released by microsoft but it has not yet been released. I think this would help once it comes out but I need it sooner than that.

2) psloggedon.exe - This is a tool from sysintervals.com but it displays all computers the PC has ever logged into and not which they are currently logged into. It also has to access the registry of each PC which is very time-consuming and with over 2000 desktops in our enviroment it's not a good solution.

I do not have access to the WINS or DNS Servers nor the Domain Controller although I do have admin rights on the network and on every PC. I also have access to the admin tools for active-directory to manage the user OU.

Environment: On domain using Active-Directory.
PCs: All Windows XP - approx 2000 machines.
IDs: All standard naming convention

Please, if you give a solution, explain how to do it or reference a website that does. Thanks!

32 replies

by bfilmfan

Assuming that you can get the computer name of the system that users are logged into, then you could connect to it via RDP or PcAnywhere.

With the name, you could ping the workstation name and then return an IP address.

There might be some user education issues with teachning them on how to find this information, but that is merely a matter of having some patience.

by techrepublic

Ok, maybe I should have worded this differently. I need either the computer name or the IP address. I was just simplifying the question. If I had the computer name I could ping it and that would give me the IP address or visa versa. Any other ideas?

by g...

Maybe by the logs. I guess the log in is AD for the users so AD logs it. If you can just check the logs you find it.

by techrepublic

The command would be "netstat -a" but that only shows current connections to the user's CURRENT PC. I'm trying to find, From my computer, which PCs the user is logged into with a utility/tool/command. Unfortunately, netstat doesn't work for that purpose.

by chanmkr

with netstat command y can try
go to command prompt
netstat /a
it will display y open connections
best of luck

by techrepublic

For the question above, which logs would I check? I don't have access to the WINS or DNS servers. Can you tell me?

The command would be "netstat -a" but that only shows current connections to the user's CURRENT PC. I'm trying to find, From my computer, which PCs the user is logged into with a utility/tool/command. Unfortunately, netstat doesn't work for that purpose.

by p.j.hutchison

You could check the Security logs on the Event Viewer on DC to see which PC the user has logged into, and if PCs are dynamically registered onto the DNS, then you can use nslookup to find their IP address!

by techrepublic

Thank-you but as stated above, I do not have access to the domain controler which would include the domain controler logs.

by titus.ong

There is a utility called NPING.EXE. It works like this :

nping -s

It will query the WINS databse and return the IP address of the name given.

by techrepublic

I do not run lotus notes in our environment. Nping is only available for lotus notes unless you can point me in the right direction otherwise. Thanks. I got excited on that one ;)

by nleporacci1

I use a free product call "Angry IP Scanner". It allows me to scan my segment of the network by IP address or by computer name. I use it a lot to scan by computer name. This will return the IP of the system in question.

by techrepublic

If I knew the computer name, I could get the ip address very easily with ping or nslookup. Thanks though. I'm trying to find the IP address or the computer name.

by cfizz34

This is more of a suggestion but if you use a good naming convention for the PC's then you would know the computer name by the person using it. We use this type of naming convention at my work and it has helped out our techs.

by techrepublic

We have over 2000 machines already in the environment. They are set by their serial number. It's a good suggestion but not possible in our current environment.

by virtualgardener

Use the SRVMGR.exe tool from an NT server box. Paste it on your personal desktop, and when you run it you should see a list of computers. From the View menu select "Servers" to see only the servers on your network. Double-click your domain controller and you should see the properties box for it and a button for users. Since any logged on user is connected to the domain controller, they are currently "Using" it. Scroll down through the list until you find the user you want and the second column should have the PC name. I think in Active Directory it should have the IP instead since AD uses DNS and NT used NetBIOS. Either one should work for you. I just tested it on my Active Directory Domain and it works fine for me. I am Domain Admin though, are you?

If you don't have access to an NT server box, I think you can download it from here:
http://support.microsoft.com/default.aspx?
scid=kb;en-us;173673
I don't know if AD has a similar tool or not. We are only now migrating to 2003 from NT.

by techrepublic

Thanks but sorry, I'm not a domain admin. I do desktop support and thus my initial problem. Good try though...

by jrice

You could enable snmp on the workstations. Using a program that discovers network devices it will tell you computer names to IP addresses. I use SolarWinds however that is a costly piece of software

by techrepublic

Thanks but I'm looking for something in our current enviroment without making a huge change on all the desktops.

by sner55

Do a net send to the user, then nbtstat -c. They do need messenger enabled, and would have to close the pop-up window.

by geoffmichael

A freeware product, Network View, will locate all computers on a network and identify them by computer name and IP address.

by techrepublic

Network view is nice for other purposes but I just need a realtime way to find the last login for multiple ip ranges. This one takes a long time and floods the network more than I need to. Thanks again for the suggestion.

by rswillmn

Use Angry IP Scanner. If ou know the subnet that the user's pc is on, you can run the scan and then sort on different fields such as IP, computer name, user name, etc.

by techrepublic

Floods the network more than necessary. I just need a simple tool for just IP addresses/userids. Thanks though.

by titus.ong

Hi,

I'm still using this utility to check on current logon users. You can email me at titus_ong72@yahoo.com.sg and I can sent you the file to try

by techrepublic

Here's what I used to fix my problem.

1) installed SMS on my PC.
2) used SMS queries to scan "systems by last login". All I need to do is type in their ID and it gives me all kinds of info. It's real-time and very accurate, does not flood the network and I have permission to do so.

Thanks all for the help.

This discussion is closed to new replies.