开发者

Can't call up SpFeature by Display Name - sharepoint 2010 power shell

I am running the sharepoint 2010 Management Shell and I am did this

Get-SPFeature –DocumentRoutingResources –Site http://sp2010 |ft -auto

Get-SPFeature : A parameter开发者_如何学Python cannot be found that matches parameter name 'Docume ntRoutingResources'. At line:1 char:40 + Get-SPFeature -DocumentRoutingResources <<<< -Site http://sp2010 |ft -auto + CategoryInfo : InvalidArgument: (:) [Get-SPFeature], ParameterB indingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.SharePoint.Powe rShell.SPCmdletGetFeature

I am not sure why I get that since when I just do

Get-SPFeature –Site http://sp2010

It shows up


The code you entered is passing a parameter called DocumentRoutingResources to the PowerShell command, which doesn't have such a parameter. If you want just that item returned, you can filter for it quite easily:

Get-SPFeature -site http://tskm | ? {$_.DisplayName -eq "DocumentRoutingResources" }

The "?" is a shortcut for the cmdlet "where-object".

For your specific example, the cmdlet supports the 'identity' parameter as shown here:

 Get-SPFeature -identity DocumentRoutingResources -Site http://sp2010
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜