用VBS向AD服务中添加测试数据
1,前言
项目中需要用AD服务的测试数据。有个例子,很好用。
Set objDomain = GetObject("LDAP://dc=test,dc=local") Set objOU = objDomain.Create("organizationalUnit", "ou=adUser4") objOU.SetInfo Set objOU = GetObject("LDAP://OU=adUser4,dc=test,dc=local") For i = 1 To 10000 Set objUser =objOU.Create("User", "cn=UserNod" & i) objUser.Put "sAMAccountName", "UserNod" & i objUser.SetInfo objUser.put "description", "cardidd" & i objUser.SetInfo objUser.SetPassword "mypass" objUser.AccountDisabled = FALSE objUser.SetInfo Next
相关推荐
cbqstars 2020-08-16
未来战士 2019-12-08
架构技术交流 2019-12-17
laohyx 2019-10-23
airfling 2019-11-25
luohui 2009-07-23
大尉 2009-01-05
weiloser 2008-08-16
wesai 2019-09-05
bentengdi 2008-06-23
SometimesYmc 2008-06-20
xsjezp 2008-06-20
HTMLzuo 2019-09-05
86560895 2007-03-27
diediexiaomi 2007-03-25
潇汀 2007-03-07
以梦为马不负韶华 2007-03-07