Manage User: manage-user
To manage another user, the command must be run by an administrator, and must specify the logon name of the user being managed.
Note: It is not possible to manage your own account with this command unless you are changing a password with -changePassword.
Syntax
The syntax for this command is:
stcmd{ex} manage-user -s "userName:password@host:port" -logonName userlogonName [-suspend] [ -activate ] [ -forcePasswordChange ] [ -forceLogoff ] [ -changePassword newPassword
Parameters
For information about the command parameters, refer to Operation Parameters.
In addition:
Parameter |
Description |
---|---|
-logonName | Designates the user you want to manage. -logonName is required for all uses of this command. Type the users logon name. |
-suspend | Suspends the designated user account. |
-activate | Activates the designated user account. |
-forcePasswordChange | Forces a password change for the designated user account. |
-forceLogoff | Forces the designated user to logoff. |
-changePassword newPassword | Changes the designated users password to the specified new password. This is the only parameter where a user can change their own account. |
Example
The following examples can be used by and administrator to manage another user account:
manage-user –s “Administrator:password@host:port” -logonName “joeuser” –suspend
manage-user –s “Administrator:password@host:port” -logonName “joeuser” –activate
manage-user –s “Administrator:password@host:port” -logonName “joeuser” –forceLogoff
manage-user –s “Administrator:password@host:port” -logonName “joeuser” –changePassword “joepassword”
A non-administrative user can also run this command, but only to change his/her own password as follows:
manage-user –s “joeuser:password@host:port” -logonName joeuser –changePassword “mynewpassword”
Note: In this case, -logonName specifies the same name as the login user name.