Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing active directory

Status
Not open for further replies.

stucker79

Technical User
Dec 7, 2004
25
US
I am working on setting up a training program for work. Each users name will go in a database where it will be paired up with various courses. I would like to retrieve the users from the AD and populate a Sql table with this information. I know how to get the users out of AD and put them into a dataset and consequently get them into a SQL Table. My question is this: what is the best way to sync up this information? Should I create a diffgram? Is this idea just a bad idea to begin with? :) The reason for doing this is so that we don't have to maintain a list of users in sql. Thanks in advance for any help you can provide.
 
Check this thread:
the first post uses the WMI to get the user name, but you can remove the "WHERE Name = System.Environment.Username" part and it will return a list of all users. Not sure if it crosses domains or not, but I think I remember pulling up a list of everyone on the network here with that.

-Rick

----------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top