使用C ++或VB脚本读取和更新Active Directory [英] Active Directory Read and Update using C++ or VB Scripting
问题描述
我想在AD中查询几个属性值,例如AdminDisplayName,ScriptPath和HomeDrive,其中SamAccountName等于特定变量.然后,我想将结果保存到特定的C ++或VB脚本变量中,然后将其用于与每个感兴趣的用户的现有数据库数据集进行比较.然后,根据每个用户的比较结果,我将相应地更新用户的AD属性值.
有人可以给我指出一些我可以用来启动该过程的示例代码吗?
每个部分可以使用不同的来源;例如,可以有一个指向阅读部分的链接;然后是指向更新部分的另一个链接,等等...我可以将它们组合在一起以创建一个流程来执行所需的任务.
预先感谢您的协助.
问候,
Johnny
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
推荐答案
看看MSDN文档:
http://msdn.microsoft.com/en-us/library/aa772218(VS .85).aspx [ ^ ]
从MSDN中检查以下示例代码:
http://msdn.microsoft.com/en-us/library/aa772316 (v = VS.85).aspx [
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
这篇关于使用C ++或VB脚本读取和更新Active Directory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!