In 9.10 and earlier it is very tricky to modify SPM password using composite templates due to the fact that changing password will affect communication from CCE to SPM because it requires this password for authentication. This problem is resolved in the upcoming 9.12 release (for 9.12 SPM only) by enabling TRUSTED authentication that does not rely on password.
For 9.8+ versions changing SPM password can be done via CLI. This is a fragment from the CC doc
NODE_ALIAS=local
PASSWORD=secret
RCID=OSGI-SPM
# get Administrator user config XML
cc get configuration data $NODE_ALIAS $RCID COMMON-LOCAL-USERS-Administrator -o administrator.xml
# Add new password
sed "s,/>,><Password>${PASSWORD}</Password></User>,g" administrator.xml > administrator_new.xml
# Update user config
cc update configuration data $NODE_ALIAS $RCID COMMON-LOCAL-USERS-Administrator -i administrator_new.xml
# verify connection
cc list inventory components nodeAlias=$NODE_ALIAS -e $RCID -w 0 refresh=true
You can you these commands to change password for SPM, CCE, CTP, IS, MWS, UM 9.8+. See the documentation for details/examples.
Thanks
Sergei
#Command-Central#webMethods#Integration-Server-and-ESB#webMethods-General