Specialized Administration > Configuring Your Windchill Environment > Configuring Password Management Options > System Password Encryption Options > Using the EncryptPasswords.xml Script > encryptPw Target
  
encryptPw Target
If you have customized Windchill and have added an additional password, you can use the encryptPw target that is available from the EncryptPasswords.xml script to encrypt the password value for a specific property. Be aware that this target does only the encryption; it does not change the Windchill code needed to use the additional password.
* 
When using a non-customized Windchill system, use xconfmanager utility to change and encrypt existing passwords instead of using this target. See Encrypting Passwords Stored in Windchill Property Files.
To use this target, enter an ant command with the following format:
ant -f <Windchill>/bin/adminTools/sip/EncryptPasswords.xml encryptPw
-DpropertyName=<property> -Dpassword=<password_value>
where:
<Windchill> is the Windchill installation directory.
<property> is the name of the property used to set the password.
<password_value> is the plain-text password.
The following example sets the password for the database user in the installed keystore file to dbuserpw123. The wt.pom.dbPassword property is updated to point to the keystore for the actual encrypted value:
ant -f <Windchill>/bin/adminTools/sip/EncryptPasswords.xml encryptPw
-DpropertyName=wt.pom.dbPassword -Dpassword=dbuserpw123