What is the syntax for updating the Description field for a large number of user accounts using the (NETIQKB10318)

  • 7710318
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
What is the syntax for updating the Description field for a large number of user accounts using the Command Line Interface?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix
The syntax for updating a user account's Description field is based on the EA.EXE command on a Directory and Resource Administrator client workstation. By default, the EA.EXE command is located in the Program Files\NetIQ\DRA directory.

To update the Description field for a single user account, please use the following command:

EA USER userid  UPDATE Comment:description

To update the Description field for multiple user accounts based on a list of account names in a text file input from a text file, please use the following command:

FOR /F "TOKENS=1-2 DELIMS=," %1 IN (C:\path to text file) DO EA USER %1 UPDATE Comment:%2

 



note

NOTE: The text file referenced must be in the following format:

    userid, description
    userid, description
    userid, description
    userid, description

For more information on using the FOR statement in conjunction with DRA CLI syntax, please refer to the following article:

  • NETIQKB372 : How is a text file used as input for an operation in the Command Line Interface?


Additional Information

Formerly known as NETIQKB10318