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 server 2016 & Workflow Manager 1.0.The term ‘Register-SPWorkflowService’ is not recognized – SharePoint

SharePoint server 2016 & Workflow Manager 1.0.The term ‘Register-SPWorkflowService’ is not recognized

Issue:

Today, I was trying to register the Workflow Manager service with SharePoint server 2106 farm, but end up with the error. It is straight forward configuration but for some reason I was getting the following error.

PS C:\Program Files\Workflow Manager\1.0> Register-SPWorkflowService -SPSite “ht
tps://test.krossfarm.com/sites/WorkflowManager” -WorkflowHostUri “https://

kf-wf.krossfarm.com:12290/”
Register-SPWorkflowService : The term ‘Register-SPWorkflowService’ is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ Register-SPWorkflowService -SPSite
https://test.krossfarm.com/sites/Workfl
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Register-SPWorkflowService:Stri
ng) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Reason:

After doing a little troubleshooting and little research I found the reason why this is failing. A couple of things which are causing this issue.

You are trying to run the command in the workflow Manager PowerShell on the server where SharePoint is not installed and you did not add the Add-PSSnapin “Microsoft.SharePoint.PowerShell” in the workflow Manager Powershell.

You are on the SharePoint server but no workflow component installed on the server (either Workflow Manager installed on the server or Workflow Manager Client installed on the server)

Resolution:

Before opening the powerShell, please make sure the Workflow Client is installed on this server if Workflow Manager not installed on this machine. Or Workflow manager is installed along with SharePoint. Register SpWorkflowService is SharePoint command, which configures the SharePoint host to use the Workflow service. So now you have two way to run the command either using the SharePoint Management Shell or using the Workflow Manager PowerShell.

    • Method 1
      • Open the SharePoint Management Shell as administrator
      • then run the Register-SPWorkflowService.
    • Method 2

You may also like...

Leave a Reply

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