CertCities.com -- The Ultimate Site for Certified IT Professionals
Visit CertCities.com Forums and Ost Your Mind Share share | bookmark | e-mail
  Microsoft®
  Cisco®
  Security
  Oracle®
  A+/Network+"
  Linux/Unix
  More Certs
  Newsletters
  Salary Surveys
  Forums
  News
  Exam Reviews
  Tips
  Columns
  Features
  PopQuiz
  RSS Feeds
  Press Releases
  Contributors
  About Us
  Search
 

Advanced Search
  Free Newsletter
  Sign-up for the #1 Weekly IT
Certification News
and Advice.
Subscribe to CertCities.com Free Weekly E-mail Newsletter
CertCities.com

See What's New on
Redmondmag.com!

Cover Story: IE8: Behind the 8 Ball

Tech-Ed: Let's (Third) Party!

A Secure Leap into the Cloud

Windows Mobile's New Moves

SQL Speed Secrets


CertCities.com
Let us know what you
think! E-mail us at:



 
 
...Home ... Editorial ... Columns ..Column Story Saturday: April 5, 2014


 Tip o'the Week  
Zubair Alexander
Zubair Alexander


 Custom LDAP Query To Show Locked User Accounts
How can I create a custom LDAP query that will allow me to determine locked user accounts in Windows Server 2003?
by Zubair Alexander  
9/12/2007 -- You can use the Saved Query feature in Active Directory Users and Computers. Here's the procedure:

  1. Go to ADUC and right-click on Saved Queries.
  2. Select New, Query.
  3. Type in the name and description of the query (e.g., Locked User Accounts) and then click on Define Query.
  4. In the Find box, select Custom Search and then click on the Advanced tab.
  5. Enter the following text for the LDAP query:
    (&(&(&(objectCategory=person)(objectClass=user)
    (lockoutTime:1.2.840.113556.1.4.804:=4294967295))))
  6. Click OK twice to close all windows.
  7. Simply highlight the "Locked User Accounts" query and press F5 to refresh. If you have any accounts that are locked, they will show up in the right-hand pane.

If your query fails, it's most likely because you entered carriage returns in the LDAP query. The query does not contain any spaces or carriage returns.


Zubair Alexander, MCSE, MCT, MCSA and Microsoft MVP is the founder of SeattlePro Enterprises, an IT training and consulting business. His experience covers a wide range of spectrum: trainer, consultant, systems administrator, security architect, network engineer, author, technical editor, college instructor and public speaker. Zubair holds more than 25 technical certifications and Bachelor of Science degrees in Aeronautics & Astronautics Engineering, Mathematics and Computer Information Systems. His Web site, www.techgalaxy.net, is dedicated to technical resources for IT professionals. Zubair may be reached at .

 


More articles by Zubair Alexander:

-- advertisement --


There are 32 CertCities.com user Comments for “Custom LDAP Query To Show Locked User Accounts”
Page 1 of 4
2/6/08: Jakov Haimi from Finland says: How to create LDAP Query or VBS script, which lists all the groups and the members of a group in a specified domain, also in case if one of the member is a group.
7/1/13: louis vuitton outlet online from [email protected] says: ths louis vuitton outlet online http://www.louisvuittonttoutlet.com
7/5/13: gucci outlet online from [email protected] says: nice articles gucci outlet online http://www.guccioutletstore-online.com
7/5/13: christian louboutin outlet store from [email protected] says: good share. christian louboutin outlet store http://www.christianlouboutinoutleta.com
7/25/13: Herve Leger uk from [email protected] says: thank you for share! Herve Leger uk http://www.herveleger-outlet.co.uk/
7/31/13: Fake Oakley Glasses from [email protected] says: Essentially the most fun you can have without missing sunglass Fake Oakley Glasses http://www.fakeoakleysglasses.com
8/1/13: fitflops Sale from [email protected] says: Students takes the boast on shoes fitflops Sale http://www.fitflopsshoesoutlet.com
8/2/13: cheap mac makeup from [email protected] says: makeup was insanely simple in the past, but these days it's impossible cheap mac makeup http://www.maccosmeticswholesaler2013.com
8/5/13: toms sale from [email protected] says: The Spectacular Magic Of Any shoes toms sale http://www.tomsoutlets-usa.com
8/6/13: OakleyRadarSunglasse from [email protected] says: A Dude who sold his sunglass story for few million dollars Oakley Radar Sunglasses http://www.usa-fakeoakleys.com
First Page   Next Page   Last Page
Your comment about: “Custom LDAP Query To Show Locked User Accounts”
Name: (optional)
Location: (optional)
E-mail Address: (optional)
Comment:
   

-- advertisement (story continued below) --

top