How do I create bulk accounts and set their passwords during the create operation? (NETIQKB22483)

  • 7722483
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How do I create bulk accounts and set their passwords during the create operation?

goal
Directory and Resource Administrator 7.x

fact
Directory and Resource Administrator 6.x

fix

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:

user1,password
user2,password



fix

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:  

C:\Program Files\NetIQ\DRA\SDK\Samples\AddUserWin2k



note

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.



Additional Information

Formerly known as NETIQKB22483