Command line batch for adding users in AD
May 31, 2010
Steven Whiting
In notepad type
dsadd user “cn=%1, ou=OUName, dc=YourDomain, dc=YourSuffix” -fn %2 -ln %3 -pwd fred -mustchpwd yes
Save as a bat file.
cn = command name (user name)
fn = first name
ln = Last name
Everything in bold you replace with your own info.
Name the file whatever, like adduser.bat
Example:
adduser testdummy Test Dummy
Would add the user Test Dummy