How can I disable a large number of user accounts in a bulk operation? (NETIQKB8738)

  • 7708738
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How can I disable a large number of user accounts in a bulk operation?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix
The Command Line Interface syntax for disabling user accounts is

EA USER user_id UPDATE ACTIVE:N

You can use the above command with a 'for /f' loop to disable multiple accounts from a text file.  The command to perform a batch disabling of accounts from a text file is as follows.

FOR /F "TOKENS=1 DELIMS=" %1 IN (c:\fully_qualified_path) DO EA USER %1 UPDATE ACTIVE:N

The text file must have the userids listed one below the other like below: 

userid1
userid2
userid3



Additional Information

Formerly known as NETIQKB8738