Is there a command to expire the password of multiple user accounts with one operation? (NETIQKB7290)

  • 7707290
  • 02-Feb-2007
  • 20-Jun-2007

Resolution

Goal

Is there a command to expire the password of multiple user accounts with one operation?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix

The command to expire the password of one user account using the Command Line Interface (CLI) is as follows:

EA USER userid  UPDATE PASSWORDEXPIRED:Y

To expire the password for multiple users use a FOR statement with a text file and the command itself. The text file should list the userIDs of the user accounts to be processed one after another, each on a new line. Assume that the file is named AcctNames.txt and it is located on the root of the local C: drive. The command below takes the file as input and combines it with the appropriate CLI syntax.

FOR /F "TOKENS=1 DELIMS=" %1 IN (c:\acctnames.txt) DO EA USER %1 UPDATE PASSWORDEXPIRED:Y

For more information regarding command line syntax, please refer to the operating system documentation and on-line help.



Additional Information

Formerly known as NETIQKB7290