digital8 Second Lieutenant
Joined: 29 Sep 2005
Posts: 1002
|
Posted: Fri Oct 07, 2005 12:00 pm Post subject: LDAP Query for Users with Expiring Accounts |
|
|
Want to query AD for Remote Access Users or Non-Expiring Accounts or even Disabled accounts?
You can download the file 10252Accountswithexpiringdate.zip
To import the query to the root of the Save Queries folder follow the few steps below:
1. Download the above zip file and uncompress it. Or use the one that you just created
2. Right Click on Saved Queries
3. Choose Import Query Definition...
4. Browse to find the xml file you want to import
5. Now you should see these queries.
Repeat until all three queries have been added to your Saved Queries.
For the ones that want to cut and paste, here are the LDAP Queries.
Expiring Accounts---> (&(&(objectCategory=person)(objectClass=user)(!AccountExpires=0)(!AccountExpires=9223372036854775807)))
***Note**** These was ran against Windows Server 2003 Domain Controller
I have other Active Directory Query articles, so search all my articles or visit my blog and search my blog: |
|