1

Goal:
Install SP Workflow 2013 in my SharePoint 2013

Problem:
I have followed a guide line (http://tech.just4sharing.com/Pages/tech/Configuring-SharePoint-2013-to-support-workflow-Management-Service.aspx#.UwDhCbQ6tnE) and now I'm stuck in the message

Step 23:  Give this command "Register-SPWorkflowService -SPSite
"http://xxxx" -WorkflowHostUri "http://xxxx:12291" - AllowOAuthHttp

The problem is that the PowerShell:s sourcecode

"Register-SPWorkflowService -SPSite "http://sharepoint01" -WorkflowHostUri "http://sharepoint01:12290/" -AllowOAuthHttp"

do not work properly due to error message:

Register-SPWorkflowService : The term 'Register-SPWorkflowService' is not recognized as the name of a cmdlet, function, sc
ript 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 "http://sharepoint01" -WorkflowHostUri "http: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Register-SPWorkflowService:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

What should I do in order to complete step 23?

Information:
I'm using SharePoint 2013.

enter image description here

enter image description here

enter image description here


Here's the command that worked for my environment where my SharePoint URL is http://sp.apple.com and the Web Front End server is named sharepointwfe. Register-SPWorkflowService -SPSite "http://sp.apple.com" -WorkflowHostUri "http://sharepointwfe:12291" -AllowOAuthHttp


3
  • You are using SharePoint Server 2013 right? The 2013 Workflows (and the commandlets) are not available in SharePoint Foundation 2013. Feb 16, 2014 at 17:08
  • I have installed workflow foundation or workflow manager that contain SP 2013 workflow Feb 17, 2014 at 20:15
  • I have this same problem. I am running the SharePoint Command Shell and on the SPServer2013 server where Workflow Manager is installed. When I try to run the Register-SPWorkflowService cmdlet, I get the "Term is not recognized..." error.
    – user26897
    Jul 7, 2014 at 18:50

4 Answers 4

3

Run

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

before your line to load the SharePoint commandlets. Or use the SharePoint Management Shell

3
  • Unfortunatley I retrieve a new error message that is: "PS C:\Users\Administrator> Add-PSSnapin "Microsoft.SharePoint.PowerShell" Register-SPWorkflowService -SPSite "sharepoint01" -WorkflowHostUri "sharepoint01.ADVENTUREWORKS.com:12291" -AllowOAuthHttp Register-SPWorkflowService : Unable to connect to the remote service at sharepoint01.adventureworks.com:12291/SharePoint. See InnerExce ption for more details. Client ActivityId : 4dc0a002-8338-452d-a240-2635ce547ac8. I have uploaded a new picture above. What is the next phase to do? Feb 17, 2014 at 19:49
  • Are you executing this from an SP Server, because the error indicates that the site is remote from the machine executing the script. And, make sure the URLs are correct Feb 17, 2014 at 20:00
  • 1."Are you executing this from an SP Server", Everything take place inside of WMware player. How I make a conformation if the site is remote from a machine executing the script? Feb 17, 2014 at 20:07
1

It is because you use SharePoint powershell in Windows Powershell console.

You should use SharePoint 2013 Management Shell console for running this script.

Or run Add-PSSnapin Microsoft.SharePoint.Powershell command in Windows Powershell console and you will be able to run any SharePoint powershell scripts.

7
  • 1
    So, what I said? ;) Feb 16, 2014 at 17:19
  • you answered it faster than me ;) Feb 16, 2014 at 18:26
  • 1
    Unfortunatley I retrieve a new error message that is: "PS C:\Users\Administrator> Add-PSSnapin "Microsoft.SharePoint.PowerShell" Register-SPWorkflowService -SPSite "sharepoint01/"; -WorkflowHostUri "sharepoint01.ADVENTUREWORKS.com:12291"; -AllowOAuthHttp Register-SPWorkflowService : Unable to connect to the remote service at sharepoint01.adventureworks.com:12291/SharePoint. See InnerExce ption for more details. Client ActivityId : 4dc0a002-8338-452d-a240-2635ce547ac8. I have uploaded a new picture above. What is the next phase to do? Feb 17, 2014 at 19:49
  • You can find correct Workflow Service address in Internet Information Service Manager -> Sites -> Workflow Management Site (on the right pane, in Browse Website section) Feb 17, 2014 at 19:55
  • Please look at the picture above Feb 17, 2014 at 20:14
-1

Even i faced the same situation and it got cleared now. May be u got it fixed already but let me help you with the piece of information which i know.

First i was literally doubt about which cmd to run...there is cmd..powershell...management shell..etc etc

Just make sure you run this command by opening "Sharepoint 2013 management shell"...right click and run as administrator.....then run the code.....it will work....

-1

SharePOint Foundation is not supported, therefor the cmdlet is not available

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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