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
精彩评论