I need to change the service account for workflow manager. Preferably, I'd like to avoid uninstalling and reinstalling workflow manager to do so. The configuration is correct, however the RunAs account is not.

It seems like this should be possible after reading this thread and using the below powershell:

Set-SBFarm -RunAsAccount Domain\Username
$RunAsPassword = ConvertTo-SecureString -AsPlainText -Force '<password>'
[RunOnAllNodes] Update-SBHost -RunAsPassword $RunAsPassword


However, if I try to use the Set-SBFarm or Update-SBHost cmdlets I get an error:

The term 'Set-SBFarm' is not recognized as the name of a cmdlet, function,
script file or operable program.

Does anybody know what I'm missing when trying to run the powershell script above? If the correct approach is really to uninstall and reinstall workflow manager, could someone provide an explanation for why that's necessary over just changing the service account?

Edit: I believe that a cumulative update or service bus 1.1 and/or workflow manager 1.1 may be required here.


You need to run these commands in the workflow manager powershell console not SharePoint power shell console.

On the Workflow manager server: Start > All Program > Workflow Manager > Worfklow Manager PowerShell from here run as administrator.

I did the testing on my laptop when i Install the Service Bus 1.1 after i am able to run the Set-SBfarm command.enter image description here

But with Service Bus 1.0(as a part of the Workflow Manager 1.0) i am getting the same error.

  • I should have mentioned that I was running these in the Workflow Manager PowerShell console. I still receive the not recognized error in the Workflow Manager Powershell console. – ams Apr 9 '15 at 16:06
  • are you running a script file or line by line....sometime copy paste cause some weired error, try to type the whole command...just set-sbfarm – Waqas Sarwar MVP Apr 9 '15 at 16:07
  • did you stop the farm first? stop-sbfarm? – Waqas Sarwar MVP Apr 9 '15 at 16:14
  • if I type each command seperatly stop-sbfarm runs and I can see everything is stopped. once I try to run set-sbfarm I get the same error. start-sbfarm will also start the service again. – ams Apr 9 '15 at 16:16
  • any chance you're running cu1 or cu2 for workflow manager? or workflow manager 1.1? I'm wondering if the set-sbfarm cmdlet is part of one of those updates? – ams Apr 10 '15 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.