Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know users logged into the domain and from which IP. I know it is possible to see by monitoring AD eventlogs. However, I want to do it without any software on AD server itself. Is it possible to get that information by LDAP queries?

share|improve this question

Does a script count? I found one that will do the basic query and looping to get username and last would still need to figure out the attribute for the last login IP address though.

Here is the script home (vb script and powershell versions) and a Discussion of use. You can edit the script to target a specific DC instead of the directory as a whole.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.