adsi scriting+windows 2000 ads query
I have windows 2003 domain named as tele.com and the domain controller holding all the roles are prod.tele.com.
While creating an adsi script for creating a user ,i tried the following.To try the scripts ,i created an OU named test
using the graphical interface.I wanted to create an User named test1 in that OU.
set objOu=GetObject("LDAP://ou=test,dc=prod,dc=tele,dc=com")
set objUser=objOu.Create("User","cn=test1")
objUser.Put "sAMAccountName","test1"
objUser.Setinfo
when i ran the above script ,it gave me an error ,Object not found ,withthe usual error code.
I moddified the script by changing the LDAP path, as...
set objOu=GetObject("LDAP://ou=test,dc=tele,dc=com")
and it worked...
My query is ,why did not it took the ldap path dc=prod,dc=tele,dc=com..
I had the same problem while restoring an object from an OU.
Any ideas
adsi scriting+windows 2000 ads query
thks for the same.i got the concept of LDAP path.
i just wanted to confirm that the adsi scripting which i had submiited ,is it used in a real production enviornment ,as i save it as a vbs file.
In vb scripts ,the syntax is different ,hence ...
and secondly,do u use scripts for user creation,deletion
fsmo roles ,etc.
sorry for troubling u ,but i needed to confirm ,as i m not into fulltime scripting.
i had visited the MS script centre and its good.
thks