How do I update the login script of all users via the CLI? (NETIQKB17953)

  • 7717953
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How do I update the login script of all users via the CLI?

fact
Directory and Resource Administrator 6.x

fact
Directory and Resource Administrator 7.x

fix

Use the syntax below to update the login script path via the CLI.  This command must be executed from the installed DRA directory , typically the C:\Program Files\NetIQ\DRA directory.

EA USER username UPDATE PROFILEPATH:"profile_path"

 

This will update one users account.  To update all users, the easiest method is to combine this command with a "FOR /f" loop and use a text file that contains the user accounts as input to the loop.

 

 

For Example:

The file called "AcctNames.txt" contains a list of all users accounts listed one on each line. The file is located in the root of C and the new login path will be c:\scripts\loginscript.cmd

Use the following syntax from the command line to change all of the accounts login script path:

 

for /f "tokens=1 delims=" %1 in (c:\acctnames.txt) EA USER %1 UPDATE PROFILEPATH:"C:\Scripts\Loginscript.cmd"



note

See the following KB article for information on how to use a text file for input for an operation in the Command Line Interface.

 



Additional Information

Formerly known as NETIQKB17953