Windows - Change service password and restart the service

To change a password in a Windows service and restart it, define this template in a child credential, so after the parent credential is changed, the password in service will be changed too.

IMPORTANT: To use this template, you must define the service that will be managed by senhasegura as an additional information of the credential.

Create a new template, in the menu Executions > Settings > Templates :

Name: Windows - Change service password and restart the service

Executor: Windows RPC

Execution Type: Password change

Content:

sc stop [#ADD_INFO#]
sc config [#ADD_INFO#] obj= [username#] password= [#NEW_PASSWORD#]
sc start [#ADD_INFO#]