Results 1 to 4 of 4

Thread: DSADD user -memberof usage

  1. #1
    Join Date
    Aug 2011
    Posts
    45

    DSADD user -memberof usage

    I want to add a particular user on my Domain to Multiple groups using DSADD user command. I tried doing the same doing this:

    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 First.Last@Xyxyxyx.com -memberof "CN=.Abc
    Def,OU=AB,DC=Xyxyxyx,DC=com"


    But it only allows me to add a new user to one group at creation time. Can anyone please tell me what the correct syntax for using DSADD user command is? Thanks in advance,

  2. #2
    Join Date
    Sep 2004
    Posts
    136

    Re: DSADD user -memberof usage

    You are correct to far extent but there is a small mistake. You will need to 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.

  3. #3
    Join Date
    Sep 2004
    Posts
    75

    Re: DSADD user -memberof usage

    I think you are right. Microsoft should better update their help, because there written that DN's must be separated with ";".

  4. #4
    Join Date
    Aug 2011
    Posts
    45

    Re: DSADD user -memberof usage

    Thank you very much for the help LeonL. That did the trick, it seems obvious now and I did try a few variations but not that one.

Similar Threads

  1. Problem with dsadd user - directory not found
    By hadi576 in forum Active Directory
    Replies: 3
    Last Post: 05-05-2012, 10:59 AM
  2. Need suggestion for the user-defined memory usage limits in Firefox
    By SaibalJha in forum Technology & Internet
    Replies: 8
    Last Post: 09-11-2011, 07:17 PM
  3. Why some of the new user gave up Linux Usage
    By Oms-waroop in forum Operating Systems
    Replies: 5
    Last Post: 05-01-2011, 01:43 AM
  4. Replies: 20
    Last Post: 21-08-2010, 03:55 PM
  5. 23GB usage in C:\Users\<user>\AppData\Local\Microsoft\Windows ???
    By Tahseen Shahzad in forum Windows Vista Performance
    Replies: 2
    Last Post: 08-04-2008, 04:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,386,919.75700 seconds with 16 queries