该术语在powershell中不被识别为cmdlet的名称

时间:2014-10-30 12:53:25

标签: powershell sharepoint sharepoint-2013 powershell-v3.0

我们最近在Windows Server 2012 R2上安装了SharePoint 2013 当我尝试使用Windows PowerShell运行Enable-SPSessionStateService -DefaultProvision时,会出现以下错误。我在这里想念的是什么?请帮忙。

PS C:\Users\sysuser> Enable-SPSessionStateService -DefaultProvision
Enable-SPSessionStateService : The term 'Enable-SPSessionStateService' 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
+ Enable-SPSessionStateService -DefaultProvision
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Enable-SPSessionStateService:String) [],     CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

0 个答案:

没有答案