Friday, 18 November 2011

SharePoint Search: An efficient DDoS machine

Crawler Impact Rules in SharePoint PowerShell is :
New-SPEnterpriseSearchSiteHitRule -Identity myHost -Behavior 0 -HitRate 40

The TechNet article lists it:

Yet when you run it you get :
New-SPEnterpriseSearchSiteHitRule : A parameter cannot be found that matches parameter name 'Identity'.At line:1 char:44+ New-SPEnterpriseSearchSiteHitRule -Identity <<<< itwiki -Behavior 0 -hitrate2+ CategoryInfo : InvalidArgument: (:) [New-SPEnterpriseSearchSiteHitRule], ParameterBindingException+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Office.Server.Search.Cmdlet.NewSearchSiteHitRule

If you remove the -Identity and just use :
New-SPEnterpriseSearchSiteHitRule myHost -Behavior 0 -HitRate 40

All is right, and on you go.

No comments:

Post a Comment