23 Oct 2010 - Digital Strategy // By Productive Edge Team

Adding Domain Users to a Server 2008 R2 Domain

I have a long list of users to add to an existing domain, and using the Active Directory Users and Computers GUI:

image

is an easy way to add a couple of users:

image

image

image

image

but with over 40 to add, it would take too long.  How can I speed this up?  dsadd to the rescue!  The command line you would use to add a new user is:

dsadd user "CN=First Last,CN=User,DC=corp,DC=productiveedge,DC=com" -samid first.last -pwd qwerty123! -mustchpwd yes 

so you can create a script to add users to a domain relatively easily.  Note the:

-mustchpwd yes 

at the end of the line.  That is added to require the user to change their password on the first login.

Share
Adding Domain Users to a Server 2008 R2 Domain