Hi there,first off, happy new year to everybody !!
here comes the questions:
i've been playing around for a while now with adsi (read: the WinNT provider). After a few great pointers and sample scripts from you guys i can now script almost anything with this provider. But now i have a new challenge in my life... create a contact in AD, in a script.
pls note that i am a NT4 admin, 2k knowledge is limited
i figured that my best bet was the LDAP provider since there are some limitations in the WinNT provider. I'd like to bind to the (contacts) container(/OU) in the domain, create the contact object, and set its properties. (just like i would create a user on NT4).
problem : binding to the container
consider my setup, 1 W2K DC, with AD installed (only server in domain), hooked up to 1 W2K prof machine running the scripts, NOT part of any domain. The domain (mvdw.nl) contains a OU called "contacts" in the root of AD
My thought :
$LDAP = getobject ("LDAP:")
$ou = $LDAP.opendsobject ("LDAP:// ... ","administrator","SecReT",1)
$ou.create etc etc ...
but as you can see by the ... i can't seem to get the syntax right to bind to the ou. tried just about any combination i could find in SDK/MSDN but all of them returned an error.
can anyone enlighten me what the correct syntax of this would be ??
if i have just one working example i should be able to figure out the rest of this to also work using getobject directly and in other domains/ou's
Thanks in advance.