Remove-SPEnterpriseSearchQueryScopeDisplayGroupScope

Description
This cmdlet creates removes a scope from a given display group given ScopeDisplayGroupPipeBind and ScopePipeBind.

Example (Removes the "All Sites" scope from the "Search Dropdown" display group):
$searchapp = Get-SPEnterpriseSearchServiceApplication "Search Service Application"
$group = New-SPEnterpriseSearchQueryScopeDisplayGroup -Name "New Scope Display Group" -url http://sp2010 -SearchApplication $searchapp
$scope = Get-SPEnterpriseSearchQueryScope -Identity "All Sites" -SearchApplication $searchapp
Remove-SPEnterpriseSearchQueryScopeDisplayGroupScope -ScopeDisplayGroup $group -Scope $Scope

Author: Pete Cuttriss (petecuttriss)
Creation Date: 8/10/2010

Last edited Aug 11, 2010 at 5:37 AM by cdog, version 2

Comments

No comments yet.