iParagons

IBM FileNet P8 | Case Manager | Content Navigator

How to Change Wasadmin Password in WebSphere

WebSphere Application Server (WAS)

How to Change Wasadmin Password in WebSphere

By Junaid Azam / Dec 28, 2022

Sometimes, it happens when WebSphere Application Server Admin forgets the wasadmin password. Question is, How can I change my primary administrator password using wsadmin in File Based Registry? Or, how to change wasadmin password in WebSphere?

Cause:

This can be caused by many reasons like, server will not start when security is enable, forgot administrative password etc.

Environment:

  • IBM WebSphere Application Server (WAS) 7.0.x / 8.0.5.x / 9.0.x
  • Content Platform Engine (CPE) 5.2.1.x / 5.5.x
  • Content Navigator  (ICN) 2.0.3.x / 3.0.x

Solution:

First Make sure all the other running services are stopped. Secondly, do the following steps accodingly to accomplish your requirement: Start wsadmin from your WebSphere_root/profiles/profile_name/bin
  • wsadmin -conntype NONE
  • $AdminTask {listRegistryUsers}
how to change wasadmin password in websphere
  • $AdminTask changeFileRegistryAccountPassword {-userId primaryadminid -password newpassword}
  • $AdminConfig save
how to reset wasadmin password in websphere
  • Stop the application server.
  • Clear the server cache
change websphere admin console password
  • Start the application server.
  • Open WebSphere Application Server admin console and provide your username and password that you mentioned in the command to change. It will work fine.

For JYTHON:

Start wsadmin from your WebSphere_root/profiles/profile_name/bin
  1. wsadmin -lang jython -user primaryadminuser -password password
  2. AdminTask.changeFileRegistryAccountPassword('[-userId newAcct -password newPassword -uniqueName]')
  3. AdminConfig.save()
  4. Restart the application server
To further add a new user or how to change wasadmin password in websphere, please refere to the following tech notes:
  1. https://www.ibm.com/docs/en/was-nd/8.5.5?topic=wsadmin-fileregistrycommands-command-group-admintask-object
  2. https://www.ibm.com/mysupport/s/question/0D50z00005phvxOCAQ/how-can-i-change-my-primary-administrator-password-using-wsadmin-in-file-based-registry?language=en_US

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *