
Adding Users a group in AD
Yeah .. found out the syntax is actually as follows .. to make it work that
is
Set grp = GetObject("LDAP:// etc ....")
grp.Add (LDAP://CN= etc ... )
I was leaving out the LDAP:// on the grp.Add statement .. added that and
everything went peachy
=)
Thanks
Brad
Quote:
> What is line 3?
> I'm guessing it's the 2nd one you showed, but it looks like you are doing
this
> from memory (you left out the "" marks in line 1 for example)...
> IIRC, that error can occur if you have an invalid path specified.
> > I have a group in an OU that I am trying to add a user to. Here is my
> > syntax
> > Set grp = GetObject(LDAP://CN=Students,OU=Students,DC=2kdemo,DC=com)
> > grp.Add "CN=Brad Smith,OU=Students,DC=2kdemo,DC=com"
> > I am getting the following return
> > arg.vbs(3,1) (null): 0x80005000
> > Any Ideas ??
> > Thanks,
> > Brad