Additionally, if you were into scripting you could make use of ADSI to get
this. You might want to filter this using sAMAccountType=805306368 as this
will give you only the user account objects ( all of them..... ).
The following from Robbie Allen's cookbook might be of help:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
' This VBScript code finds all user accounts in a domain.
' ---------------------------------------------------------------
' Provided as a web-only addition for the book:
' "Active Directory Cookbook" by Robbie Allen
' Publisher: O'Reilly and Associates
' ISBN: 0-596-00466-4
' Book web site:
http://rallenhome.com/books/adcookbook/code.html
' ---------------------------------------------------------------
' ------ SCRIPT CONFIGURATION ------
strDomainDN = "<DomainDN>" ' e.g. dc=rallencorp,dc=com
' ------ END CONFIGURATION ---------
strBase = "<LDAP://" & strDomainDN & ">;"
' To search the whole forest using the global catalog, uncomment the
following line:
' strBase = "<GC://" & strDomainDN & ">;"
strFilter = "(&(objectclass=user)(objectcategory=person));"
strAttrs = "name;"
strScope = "subtree"
set objConn = CreateObject("ADODB.Connection")
objConn.Provider = "ADsDSOObject"
objConn.Open "Active Directory Provider"
set objRS = objConn.Execute(strBase & strFilter & strAttrs & strScope)
objRS.MoveFirst
while Not objRS.EOF
Wscript.Echo objRS.Fields(0).Value
objRS.MoveNext
wend++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Again,
you might want to replace the strFilter that he uses with the suggestion
that I have made....just a thought.
--
Cary W. Shultz
Roanoke, VA 24012
Microsoft Active Directory MVP
http://www.activedirectory-win2000.com
http://www.grouppolicy-win2000.com