Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

LAN IP

Assume I have LAN IP 192.168.20.1

How can I find out the AD user name based on IP address?
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

tracert 192.168.20.1 <- should show you path and resolve hostname
nbtstat -a 192.168.20.1 <- NetBios data of host
if reverse lookup zone is created you can use
nslookup 192.168.20.1
IMPO, i don't think the above methods could help you trace an IP back to the associated user name in AD.

below is some kind of official way to do that.

IP Address Tracking
https://technet.microsoft.com/en-us/library/jj878332.aspx
ASKER CERTIFIED SOLUTION
Avatar of Camy
Camy
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
bbao is right, what I wrote won't help.
;)
I did not read question well, I thought solution is for computer name not user name.
If You are admin and the computer is a domain mamber just simply:

1. nslookup IP_ADDRESS       ->  result is your computername
2. go \\computername\c$\Users     -> users who loged in to the computer
Avatar of ITsolutionWizard

ASKER

how can i get list of pc name, ad name in that pc, and ip address?
> how can i get list of pc name, ad name in that pc, and ip address?

if you are talking about alive Windows PCs only, you may use NET VIEW to list the computers in your current domain or workgroup.

to list user names on a specific computer, use NET USER command.

and for ip address? just PING the computer name! :)

FYI

NET VIEW
Displays a list of domains, computers, or resources that are being shared by the specified computer. Used without parameters, net view displays a list of computers in your current domain.
https://technet.microsoft.com/en-us/library/bb490719.aspx

NET USER
How to Generate a List of Users
https://support.microsoft.com/en-us/kb/149781
Another option might be to install a WINS server.  Windows clients register user names as well as machine names on a WINs server. All versions of Windows Server from NT4 to 2012R2 include it.

Once machines and users are registered, it is easy to look up a user based on an IP address in the console.