List network users

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top