0
我正在通过PowerShell脚本设置SharePoint 2013搜索中心。我可以将内容源,爬网规则等等,所有这似乎工作很好,但我不能创建一个“ResultSource”:'New-SPEnterpriseSearchResultSource'未被识别为cmdlet的名称
PS > New-SPEnterpriseSearchResultSource
New-SPEnterpriseSearchResultSource : The term 'New-SPEnterpriseSearchResultSource' 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
+ New-SPEnterpriseSearchResultSource
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-SPEnterpriseSearchResultSource:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
这是奇怪的。它看起来像名单New-SPEnterpriseSearchResultSource on Technet底部的那些cmdlet只是不存在:我有“SearchResultItemType(s)”的功能,但没有“SearchResultSrouce(s)”的功能。
PS > Get-Command -Module *Sharepoint* -name *SearchResult*
CommandType Name ModuleName
----------- ---- ----------
Cmdlet Get-SPEnterpriseSearchResultItemType Microsoft.SharePoint.PowerShell
Cmdlet New-SPEnterpriseSearchResultItemType Microsoft.SharePoint.PowerShell
Cmdlet Remove-SPEnterpriseSearchResultItemType Microsoft.SharePoint.PowerShell
Cmdlet Set-SPEnterpriseSearchResultItemType Microsoft.SharePoint.PowerShell
有没有人曾经遇到过这个?
你好 - 感谢您的答复,但它似乎没有有所作为。它加载得很好(版本v4.0.30319?),但仍然不能识别术语'New-SPEnterpriseSearchResultSource'。 –