How do I create bulk accounts and set their passwords during the create operation?
Directory and Resource Administrator 7.x
Directory and Resource Administrator 6.x
The following CLI command uses a text file, a for /f loop and will create the user accounts, set the initial password and set the User Must Change Password at Next logon flag on.
The following command must be run from the ..\Program Files\NetIQ\DRA prompt (depending on the Administration product in use) on a computer with the CLI installed:
- for /f "tokens=1-2 delims=," %1 in (c:\test.txt) do ea user %1 create clone:templateaccount password:%2 passwordexpired:Y OU:cn=users,dc=domain,dc=com
The text file will have a line for each user and be in the following format:
In addition, the SDK contains an example spreadsheet of how you can create accounts via an Excel spreadsheet. The spreadsheet is located in the following directory after you install the SDK:
Begin with DRA 6.6, the DRA CLI now has the ability to specify the firstname and lastname fields as one of the properties in the CLI. You can also specify the fullname during the create operation in the CLI.