Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Windows Server 2008: dsadd, add users to active directory with command line

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,205
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 8, 2009

This how to add users to active directory via command line. It requires very long command and complex syntax, but a user may be created with all the proper settings by such means.

commands used:
dsadd user "cn=Gail Andrews,ou=people,dc=my,dc=domain" -upn gandrews -samid gail.andrews -pwd * -mustchpwd yes -hmdir \\server2008a\users\gandrews -hmdrv u:

Providing training videos since last Tuesday.
http://technoblogical.com
Thanks for watching.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (technoblogical)

  • for a school assignment, i have to build a network including a dc, and i have created a *txt file with the dsadd commands for adding groups both global and domain local. but when i save it as a .cmd filde and try to run it in cmd, i get an error. i use windows 2008, and in windows 2003 it works fine when i do it as described above in my comment.

    i know that windows 2003 and 2008 are 2 different things but tthe core like dsadd is the same. can anyone tell me what i am doing wrong?

  • @a55a51n2 don't save it as a *txt or a *cmd file. Save it as dsadd*bat. (Of course, that should be a dot not an asterisk.)

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • everything works but not create folder "gandrews", in GPO when given properties on Andrew profile is created, write the path again and is created. What is the problem?

  • According to Paul Bryans (Common Errors in English): The original Scottish dialect form was “pernickety,” but Americans changed it to “persnickety” a century ago. “Pernickety” is generally unknown in the US though it’s still in wide use across the Atlantic.

    I'm British so I suppose I can see why you think it's old school. By the way I Googled that, I don't want to come across as some kind of literature geek.

  • @johnmcnair28 i've not heard pernickety before. that's gotta be old school eh?

  • Useful post. Just one pernickety point though.... CN stands for Common Name.

  • Thanks so much for the video!

    Hint, you can type "cd \" instead of "cd ../.." to change to the root directory.

  • very clear voice and thorough explanation.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more