DSADD user -memberof usage

Discussion in 'Active Directory' started by Mo Childs, Mar 13, 2007.

  1. Mo Childs

    Mo Childs Guest

    Can anyone point me at the correct syntax for using the DSADD user command
    and adding a user to multiple groups, I can only add a new user to one group
    at creation time. An edited version of what I have now is below

    DSadd user "CN=Last\, First,OU=AB,DC=Xyxyxyx,DC=Com" -pwd Password -samid
    First.last -fn First -ln Last -empid 12345 -display "Last, First" -loscr
    Script.vbs -upn -memberof "CN=.Abc
    Def,OU=AB,DC=Xyxyxyx,DC=com"
     
    Mo Childs, Mar 13, 2007
    #1
    1. Advertisements

  2. Separate group distinguished names with spaces. For example (watch line
    wrapping, it usually wraps at spaces):

    dsadd user "CN=Last\, First,OU=AB,DC=Xyxyxyx,DC=Com" -memberOf
    "cn=group1,OU=AB,DC=Xyxyxyx,DC=Com" "cn=group2,OU=AB,DC=Xyxyxyx,DC=Com"

    All values up to the next dash "-" are taken as group distinguished names.
     
    Richard Mueller [MVP], Mar 13, 2007
    #2
    1. Advertisements

  3. Richard Mueller [MVP] ÐÉÛÅÔ:
    Hmm... I think, that MS better update their help, because there written
    that DN's must be separated with ";".
     
    Nick Domukhovsky, Mar 13, 2007
    #3
  4. Mo Childs

    Mo Childs Guest

    Thanks, that did the trick, it seems obvious now and I did try a few
    variations but not that one.
     
    Mo Childs, Mar 13, 2007
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.