Remove Server from Service Bus Farm

Hi Guys,

This one of the issue that I experienced when Removing the Workflow manager from one farm and joining another farm. This requirement popped out as we crated the development farm by cloning the servers in Production Farm. I renamed the servers accordingly. As the Workflow Manager and Service Bus manager were already configured I had to remove the server from both farms (Workflow Manager and Service Bus)

Good news is I was able to remove from Workflow Farm using Workflow Configuration manager. But even I tried removing from Service Bus Farm using UI its still there. So that I moved to PowerShell Open-mouthed smile to get this done. This is not the only issue that I had to face. Others will be addressed in Related post bottom of this post.

  • Open Service Bus PowerShell as Administrator


Warning Message shows as this is the new cloned SP server. What was in the SB Farm was the old server name. No problem this will remove current server from SB Farm. Use Get-SBFarm command to verify.


  • To make sure I restarted the server and ran Workflow Configuration Manager. Now its possible both WF manager and SB to connect to an existing farm Smile


Register-SPWorkflowService The remote server returned an error: (404) Not Found

This errors pops out if you have installed SharePoint Server 2013 on Windows Server 2012 R2. Its true that SharePoint 2013 now supports Windows Server 2012 R2 after the SP1 update.

Even though you have SP1 (​15.0.4569.1000) you still will get the error when registering workflow service.


  • If it shows “Workflow is Not Connected” you have to register the workflow service in SharePoint.
  • In order to register run “Register-SPWorkflowService -SPSite “http://SPSite” -WorkflowHostUri “http://ServerName:12291″ -AllowOAuthHttp” in elevated SharePoint Management shell


  • If the workflow service in running on a Windows Server 2012 R2 server you will get an error (Register-SPWorkflowService : The remote server returned an error: (404) Not Found) as shown above.
  • In order to fix download the Web Platform Installer ( then search for Workflow Manager CU2 and proceed with installation.







Thanks you. Smile

Enjoy SharePointing Open-mouthed smileOpen-mouthed smileOpen-mouthed smile