My Little Place on The Web

Useful Queries for Active Directory Users & Computers 

Tuesday, May 19, 2009 8:39:00 PM

I created this list of queries years ago and it used to be on my blog but apparently the post was lost in one of the many moves I have done with this blog. Anyway, attached to this post is nice little zip with a number of good ADUC queries that may save you some time in your daily AD Admin life.

  • All Computers
  • All Contacts
  • All Groups
  • All Printers
  • All users
  • All Windows 2000 Computers
  • All Windows XP Computers
  • Disabled Objects
  • Exchange Recipients
  • Locked Out Users
  • Never Logged In
  • Password Never Expires
  • Public Folders
  • Users without Home Directories

As you can see, I created this group of queries long before Vista or 2008 came out. You can look at the syntax with the XP and 2000 queries to figure out how to create a query for the new OSes.

ADUC_Queries.zip (9.08 kb)