Agent Installation and Configuration > Windchill RV&S Agent Security > Encrypting Windchill RV&S Agent Passwords > To change encrypted passwords on Windchill RV&S Agent
  
To change encrypted passwords on Windchill RV&S Agent
Once you have converted your system to use encrypted passwords, you can also use encryptPassword to change those passwords. Before changing any passwords, the application first confirms the target passwords are encrypted. If the passwords are not encrypted, an error message displays.
You can run the command to change encrypted passwords directly on the Windchill RV&S Agent by specifying command options as follows:
encryptPassword -c|--changePassword passwordName=passwordValue
where
encryptPassword runs the application for password encryption.
-c|--changePassword specifies the option for changing existing encrypted passwords on the Windchill RV&S Agent.
passwordName is the name of the Windchill RV&S Agent password you want to change. For a list of the Windchill RV&S Agent password names, see “Encrypting Windchill Rv&S Agent Passwords”.
passwordValue is the value you assign to the password. Strong passwords have more than eight characters, and include both upper case and lower case.
For example:
encryptPassword -c mksagent.privatekey.password=seSamE
* 
You can also change multiple Windchill RV&S Agent passwords on the Windchill RV&S Agent by using space-separated command options, for example:
encryptPassword -c mksagent.privatekey.password=password1
mksagent.apisession.defaultPassword=password2
The following procedure outlines the mode for the encryptPassword application where no options are specified and you are presented with a text menu to guide you through the change process.
* 
The following procedure changes all currently encrypted passwords. If you do not want to change all your passwords, run the encryptPassword command using the options specified earlier.
1. Stop the Windchill RV&S Agent.
2. From the installdir/bin directory, run the following command:
encryptPassword
or
./encryptPassword
The following options display:
1) Encrypt the existing passwords
2) Change the encrypted passwords
3) Exit
3. To change all existing encrypted passwords, enter 2. You are prompted to enter new passwords for all existing encrypted passwords. Any conversion back to a plain password system must be configured manually. Once the application has completed, a confirmation message displays.
4. Restart the Windchill RV&S Agent.