Re: adding multiple users from text file to a group



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


.



Relevant Pages

  • Re: Cannot burn CD when client joins to W2k3 domain controller.
    ... Have you checked the local policy for that user as well? ... Regards ... >> Mark Dormer ... >> How to ask a newsgroup question: ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Temp file question
    ... Regards ... Mark Dormer ... How to ask a newsgroup question: ... > for video processing, so I added a 160 gig external. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: XP Home user and setting it up ?
    ... See the link below my signature ... Regards ... Mark Dormer ... How to ask a newsgroup question: ...
    (microsoft.public.windowsxp.basics)
  • Re: Bcupdate2 Utility
    ... or google on bcupdate2.exe ... Regards ... Mark Dormer ... How to ask a newsgroup question: ...
    (microsoft.public.windowsxp.general)
  • Re: Windows XP is my OS
    ... Is it a member of a domain or standalone? ... Regards ... >> Mark Dormer ... >>> When I logon to the computer I keep getting a windows error message. ...
    (microsoft.public.windowsxp.general)