专业化管理 > 配置您的 Windchill 环境 > 配置密码管理选项 > 系统密码加密选项 > 使用 EncryptPasswords.xml 脚本 > encryptPw 目标
  
encryptPw 目标
如果对 Windchill 进行了自定义且添加了其他密码,则可以使用 EncryptPasswords.xml 脚本中提供的 encryptPw 目标对特定特性的密码值进行加密。请注意,此目标仅执行加密操作,并不更改使用其他密码所需的 Windchill 代码。
* 
使用非自定义 Windchill 系统时,应使用 xconfmanager 实用程序而非此目标更改和加密现有密码。请参阅加密存储在 Windchill 特性文件中的密码
要使用此目标,可输入格式如下的 ant 命令:
ant -f <Windchill>/bin/adminTools/sip/EncryptPasswords.xml encryptPw
-DpropertyName=<property> -Dpassword=<password_value>
其中:
<Windchill>Windchill 安装目录。
<property> 是用于设置密码的属性的名称。
<password_value> 是纯文本密码。
以下示例中,数据库用户的密码在所安装的密钥库文件中被设置为 dbuserpw123。wt.pom.dbPassword 属性将更新为指向密钥库中的实际加密值:
ant -f <Windchill>/bin/adminTools/sip/EncryptPasswords.xml encryptPw
-DpropertyName=wt.pom.dbPassword -Dpassword=dbuserpw123