Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Active Directory LastLogon LDAP Query

Posted on 2004-10-21
Medium Priority
Last Modified: 2012-06-27
I want to query LDAP for the lastLogon attribute of all users in my domain so i can prune any that have been inactive for more than four months.  does anyone know of any tools/scripts that will accomplish this??

Question by:internetsavant
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 57

Accepted Solution

Pete Long earned 750 total points
ID: 12374174
LVL 57

Expert Comment

by:Pete Long
ID: 12374189
A user account’s real last logon information indicates the last date and time when a user has logged on to the network for the last time. The real last logon information of Windows 2003-XP-2000-NT is a mystery for system administrators; especially, when an organization has multiple domain controllers. Different values are stored on different domain controllers. RealLastLogon finds the actual true value from the appropriate domain controller.
The RealLastLogon (Real Last Logon) tool solves the problem of inaccurate last logon information. The tool collects the last logon information from all domain controllers. In one scenario, the collection of user account information for more than 30,000 user accounts and 5 domain controllers took just 15 minutes.
LVL 57

Expert Comment

by:Pete Long
ID: 12465767

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question