Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
    
You are using SharePoint Server 2013 right? The 2013 Workflows (and the commandlets) are not available in SharePoint Foundation 2013. –  Vardhaman Deshpande Feb 16 at 17:08
    
I have installed workflow foundation or workflow manager that contain SP 2013 workflow –  FullMetalGame Feb 17 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 at 18:50

3 Answers 3

Run

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

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

share|improve this answer
    
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? –  FullMetalGame Feb 17 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 –  Robert Lindgren Feb 17 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? –  FullMetalGame Feb 17 at 20:07

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.

share|improve this answer
1  
So, what I said? ;) –  Robert Lindgren Feb 16 at 17:19
    
you answered it faster than me ;) –  Volodymyr Machula Feb 16 at 18:26
    
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? –  FullMetalGame Feb 17 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) –  Volodymyr Machula Feb 17 at 19:55
    
Please look at the picture above –  FullMetalGame Feb 17 at 20:14

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....

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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