I have a production environment with three Workflow Manager 1.0 servers in a farm. We also have a virtual URL that is used by NLB to spread the load between these servers. Register-SPWorkflowService PowerShell command was possibly used with a wrong -WorkflowHostUri value that looks on one of the three servers instead of a virtual NLB URL. The question is, how do I check it? Neither of the following commands helped me to answer this question:

Get-WFFarm
Get-WFFarmstatus
Get-WFScope

This is, for instance, what Get-WFFarm returns:

enter image description here

I also tried looking into scopes and could not find any mention of WF URLs used.

I would like to run Register-SPWorkflowService again, but I can't do it because It's a production environment and I need to make sure if a human error really exists before changing anything.

So, does anyone know a PowerShell command or any other way of telling what URL is used for the Workflow Manager Farm by SharePoint farm?

up vote 9 down vote accepted

You can use the following cmdlets:

$site = (Get-SPWebapplication -IncludeCentralAdministration | ?{$_.IsAdministrationWebApplication}).Sites[0]

$wfmProxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq "Workflow Service Application Proxy"}
$wfmProxy.GetWorkflowServiceAddress($site)
  • Thank you, Trevor! this is exactly what I was looking for. – Denis Molodtsov Jan 6 '16 at 3:58
  • 2
    You can get proxy by this command $wfmProxy = Get-SPWorkflowServiceApplicationProxy – Petr Štěpka Aug 19 '16 at 13:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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