如何使用vbscript将用户从excel导出到活动目录 [英] how to export users from excel to active directory using vbscript

查看:152
本文介绍了如何使用vbscript将用户从excel导出到活动目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将用户从excel导出到活动目录
表示我想写用户名和其他配置文件行为,并想通过vb脚本导出到活动目录中.

i want to export users from excel to active directory
means i want to write user name and other profile behaviuor and want to export in active directory through vb script

推荐答案

最简单的方法是通过oledb提供程序和ADO,然后运行以下命令

The easiest will be to connect via the oledb provider and ADO, then run the following command

SELECT cn, mail
FROM 'LDAP://Dc=mydomainname, DC=COM' --replace this with your domain info
WHERE objectClass = 'user'
AND objectCategory = 'person'




这应该会返回您的用户列表.




This should return you your list of users.


这篇关于如何使用vbscript将用户从excel导出到活动目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆