Re: adding multiple users from text file to a group
- From: "Mark Dormer" <markd@xxxxxxxxx>
- Date: Fri, 7 Oct 2005 08:28:56 +1000
Try adding the missing comma.
objGroup.PutEx ADS_PROPERTY_APPEND, "member", _
Array("cn=" & strList & ", " & strDN)
--
Regards
Mark Dormer
How to ask a newsgroup question:
http://support.microsoft.com/kb/555375
"xklusivly4u" <xklusivly4u@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A8A8BD0-96E7-445C-B7EC-B1D861D940B7@xxxxxxxxxxxxxxxx
> Hi there,
>
> I am trying to add multiple users accounts from text file and add them to
> a
> group.
> I am able to read user list from text file and create new users but not
> able
> to add them into particular group.
>
> What is do is, I open and read the text file and put values in a variable.
> Like this
>
> strList = objDirctionary.Item(objItem)
>
> I am able to print strList
>
> But when I use this command to add, I have an error msg saying "server
> refuse to process".
>
> objGroup.PutEx ADS_PROPERTY_APPEND, "member", _
> Array("cn=" & strList & strDN)
> strDN is another variable for AD path, I tried to put actual path but
> still
> does not work.
>
> I guess some problem with "Array" and variable.
>
> please help.
>
> Thanks
.
- Prev by Date: Re: Communications Between 2 Sites
- Next by Date: setting registry permissions
- Previous by thread: Communications between 2 sites
- Next by thread: setting registry permissions
- Index(es):
Relevant Pages
|