List network users

M

mscertified

Does anyone know how to get the list of network users from Active Directory.
Not just active users but all users. I'd like to get it into an Access table.
 
D

Daniel

I came across the following in a forum that I thought might help

"You have to set a reference to the ActiveDirectory service
(Tools/References in
the VBA Editor). Then you have access to the AD object model. I've never used
this, myself, and don't have it on my system so I can't give you any details.
But after you set the reference to the Active DS Type library, declare an
object variable as type ADSystemInfo and off you go. Intellisense should give
you a list, and the Object Browser can help as well. Example
Dim sys as ADSystemInfo

Set sys = New ADSystemInfo
Set user = GetObject("LDAP://" & sys.UserName) "

taken from
http://groups.google.ca/group/micro...read/thread/2b4dff58c25a4d45/5dbc49381644f83e



Daniel
 
Top