ADDUSERS.exe (Windows 2000 Resource Kit)

Automate the creation of a large number of users. Addusers will still work in XP/2003 for later OS's consider using a PowerShell script with New-ADUser, Set-ADAccountPassword, Add-ADPrincipalGroupMembership and Enable-ADAccount


  Create Users:
  Dump to file:
  Erase Users:

   Filename   - The comma-delimited file that AddUsers uses for data.

   /s:x       - Change the delimiter character used in filename to x.
                e.g. /s:~ would make the delimiter "~" 
   Domain     - Query the Primary Domain Controller (PDC) of domain.
                You can also use \\Servername to specify the machine where user accounts are created or read. 
                AddUsers will use the local computer by default (if you do not specify Domain)

   /c         - Create user accounts, local groups, and global groups as specified by filename.

   /d{:u}     - Dump user accounts, local groups, and global groups to filename.

Note: Password information is not saved in a user account dump and if you use the same file to create accounts, all passwords of newly created accounts will be empty. To back up security information for accounts, use a Tape Backup.

   /e         - Erase the user accounts specified in the file name. 
                an account with the same SID. This option will not erase built-in accounts. 

   /p:        - Set account creation options, used along with any combination of the following:
      * l     - Users do not have to change passwords at next logon.
      * c     - Users cannot change passwords.
      * e     - Passwords never expire. (implies l option)
      * d     - Accounts disabled.
                By default, all created users are required to change their password at logon.

Create a comma-delimited text file, which contains the new users to be created. Following the Syntax as follows:

User Name,Full name, Password, Description, HomeDrive, Homepath, Profile, Script


jimmye,James Edward Phillip II,,,,,,
alexd,Alex Denuur,,,E:\,E:\users\alexd,,
ronj,Ron Jarook,ChangeThis,,E:\,E:\users\ronj,,
sarahs,Sarah Smith,,,,,,
u0123,Mike Olarte,,,,,,

Save the file as C:\Users.txt and execute the command

AddUsers MyDomain /c c:\Users.txt /p:e

“That’s two hours I’ll never get back, is a favorite thing for an angry person to say about a movie he hates. But the thing is, every two hours are two hours he’ll never get back” - Charlie Kaufman


DSADD - Add user (computer, group..) in active directory
CSVDE - Import and export from Active Directory.
Equivalent bash command (Linux): useradd - Create new user accounts

Copyright © 1999-2019
Some rights reserved