SharePoint 2016, Sharepoint 2013, Sharepoint 2010, Windows Server 2012, Sql Server 2012,2014,IIS, Active Directory,User Profile Service, Managed MetaData Service, Search Service, Topology, Web Application, IIS, Site collection, List, Library, PowerShell, office web app, Windows Authentication, NTLM, Kerberos, Saml, ADFS, Active Directory Import, MIM, SharePoint 2016 Changing the RunAsAccount password for Workflow Manger – SharePoint

SharePoint 2016 Changing the RunAsAccount password for Workflow Manger

Krossfarm’s administrator having issue to update the password for the Workflow Manager’s RunAsAccount. But there is no helpful information available which will guide us to update the password. As we know, WFM is little complicated product, if we are using the same account for Service Bus and WFM then we have to update the same password for both services.

Resolution

We have to use the PowerShell commands for the Workflow Manager and Service Bus to update the password. We have to perform it in 2 steps.

  1. Update the Service Bus host
  2. Update the Workflow Manger host.

Note: we are using the Same Service accounts for both SB & WFM’s RunAsAccount.

Update Service Host

Frist, we have to update the Service bus host with the new password.

  • Login on the server with Configuration user account (account which used to install and configure the WFM)
  • Open the Windows PowerShell command prompt (run it as Administrator)
  • Now execute the following command

Import-Module ServiceBus

Stop-SBHost

$mypassword = ConvertTo-SecureString ‘tpas2jupa’ -AsPlainText -Force

Update-SBHost -RunAsPassword $mypassword

Start-SBHost

Note: If you have 3 server farm then you have to execute the above PowerShell on all server in the Workflow Farm.

Update the Workflow Manger host.

Now, we have to update the Workflow Manager

  • Login on the server with Configuration user account (account which used to install and configure the WFM)
  • Open the Windows PowerShell command prompt (run it as Administrator)
  • Now execute the following command

Import-Module WorkflowManager

Stop-WFHost

$mypassword = ConvertTo-SecureString -string “password” -force –AsPlainText;

Update-WFHost -RunAsPassword $mypassword

Start-WFHost

Note: If you have 3 server farm then you have to execute the above PowerShell on all server in the Workflow Farm.

Testing:

Finally test the farm by running these commands.

Note: don’t try to use the Stop-SBFarm, as it will take too much time to restart and often ends up with timeout error so always stop the host using stop-sbhost.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *