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 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:
The “?” is a shortcut for the cmdlet “where-object”.
For your specific example, the cmdlet supports the ‘identity’ parameter as shown here: