Click here to Skip to main content
15,886,093 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I would like to query AD for several attribute values, such as AdminDisplayName, ScriptPath, and HomeDrive, where the SamAccountName is equal to a specific variable. I would like to then save the results to specific C++ or VB Script Variables that I can then use to compare with an existing database data set for each user of interest. Then, based on the comparison result for each user, I will update the User's AD Attribute values accordingly.

Would someone please point me to some sample code that I can use to start the process?

It is okay to use different sources for each section; for example, there can be a link to the read section; then another link that points to the update section, etc... I can combine them together to create a single process to perform the required task.

Thank you in advance for your assistance.

Regards,

Johnny
Posted

1 solution

Have a Look at the MSDN documentation:

http://msdn.microsoft.com/en-us/library/aa772218(VS.85).aspx[^]

Check the following sample code from MSDN:

http://msdn.microsoft.com/en-us/library/aa772316(v=VS.85).aspx[^]

Good Luck!!

Regards,
K.D
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900